[Lxml-checkins] r42190 - in lxml/trunk/doc: . html

scoder at codespeak.net scoder at codespeak.net
Fri Apr 20 09:53:08 CEST 2007


Author: scoder
Date: Fri Apr 20 09:53:08 2007
New Revision: 42190

Modified:
   lxml/trunk/doc/html/style.css
   lxml/trunk/doc/mkhtml.py
Log:
work arounds for IE

Modified: lxml/trunk/doc/html/style.css
==============================================================================
--- lxml/trunk/doc/html/style.css	(original)
+++ lxml/trunk/doc/html/style.css	Fri Apr 20 09:53:08 2007
@@ -1,15 +1,15 @@
 body {
-    /* CSS Hack for IE that does not respect the "margin: auto" rule at the
-     * document level */
+    font: 13px Arial, Verdana, Helvetica, sans-serif;
     text-align: center;
-    padding: 1em;
 }
 
-
 @media screen {
+    body {
+        padding: 1em 1em 1em 21em;
+    }
+
     div.document {
         width: 45em;
-        padding-left: 21em;
         background-color: white;
     }
 }
@@ -26,7 +26,6 @@
 }
 
 div.document {
-    font: 13px Arial, Verdana, Helvetica, sans-serif;
     margin: 1em auto 1em auto;
     color: #222;
     text-align: left;
@@ -50,7 +49,7 @@
 /*** side menu ***/
 
 div.sidemenu {
-    position: fixed;
+    position: absolute;
     top: 0px;
     left: 0px;
     width: 22em;
@@ -62,6 +61,11 @@
     background-color: #FFFAFA;
 }
 
+html > body div.sidemenu {
+    /* ignored by IE -> everyone else knows 'fixed', right?  */
+    position: fixed;
+}
+
 div.sidemenu span.section.title {
     line-height: 1.5em;
     font-size: 130%;

Modified: lxml/trunk/doc/mkhtml.py
==============================================================================
--- lxml/trunk/doc/mkhtml.py	(original)
+++ lxml/trunk/doc/mkhtml.py	Fri Apr 20 09:53:08 2007
@@ -55,7 +55,7 @@
 
 def merge_menu(tree, menu, name):
     menu_root = copy.deepcopy(menu)
-    tree.getroot()[1][0].append(menu_root) # html->body->div[class=document]
+    tree.getroot()[1][0].insert(0, menu_root) # html->body->div[class=document]
     for el in menu_root.getiterator():
         tag = el.tag
         if tag[0] != '{':


More information about the lxml-checkins mailing list