W3C home > Mailing lists > Public > www-style@w3.org > December 1997

Netscape bug? or bad code?

From: Bill Triplett <billt@gate.net>
Date: Wed, 31 Dec 1997 06:48:51 -0500
Message-Id: <v03110701b0cfd70726d1@[199.227.4.184]>
To: www-style@w3.org
I'm trying to control the amount of indentation of my <li>'s.  Here my methods:

 LI {
      list-style-type: disc;
      text-indent: -1.5em;
      }

with the HTML code:

<a name="Bike">Cycling Links</a><br>
<ul>
<li><a href="...">Tampa Cycling Information</a>
<li><a href="...">Tampa Bay Freewheelers club</a>
<li><a href="...">rec.bicycle.* FAQ</a>
(...)
</ul>

This results in the first list item in each list set being indented as
requested, but all subsequent items revert back to default indentation.
Oddly, some items in the lists seem to indent themselves at random.  This
is not a good thing.

I've also tried (with the same HTML code):

 LI {
      list-style-type: disc;
      margin-left: -1.5em;
      }

This results in consistent indentation, but only of the list bullet. The
corresponding text looks as if it is tabbed out away from the bullet.

And if I put both the margin-left and text-indent into the same definition
the results are too distastrous to mention.

http://www.gate.net/~billt/links.html - page
http://www.gate.net/~billt/stylesheet.css - sheet source

Any insight would be appreciated.

Bill Triplett
billt@gate.net
http://www.gate.net/~billt/
Received on Wednesday, 31 December 1997 07:13:21 GMT

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