W3C home > Mailing lists > Public > www-style@w3.org > February 1999

Re: (css) list properites

From: Eric A. Meyer <emeyer@sr71.lit.cwru.edu>
Date: Wed, 10 Feb 1999 10:14:43 -0500
Message-Id: <v04011707b2e752dc6b4b@[129.22.138.217]>
To: www-style@w3.org
>> can you control the indents on a list (ul or ol) with css 1 or 2? Or do I
>> need to beg for it for css 3?
>
>You can do it with CSS1:
>
>	li { margin-left: 1em }

   Remember, however, that this does not grant you "control" over
indentation.  It grants you influence, but not much more.  Margins on list
items is one of those things about which browsers disagree.
   Taking the above rule, Explorer 4.x (and probably later) will use the
above value instead of its usual value (which is around 2em, I think).
Navigator 4, on the other hand, will ADD the above value to its default.
Thus, you'll have a 1em left margin in Explorer, and about a 3em left
margin in Navigator.
   There is no way around this problem short of browser detection
techniques (such as Javascript or server-side scripts) which serve up
different style sheets based on which browser is in use, or clever use of
LINK and @import bugs to get the appropriate styles to each browser.

     </EMeyer>

--
Eric A. Meyer  -  eam3@po.cwru.edu  -  http://www.cwru.edu/home/eam3.html
 Editor, Style Sheets Reference Guide  http://style.webreview.com/
 Coordinator, CSS1 Test Suite          http://www.w3.org/Style/CSS/Test/
 Member, WSP CSS Technical Committee   http://www.webstandards.org/
Received on Wednesday, 10 February 1999 10:14:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:58 GMT