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@[]>
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>
<li><a href="...">Tampa Cycling Information</a>
<li><a href="...">Tampa Bay Freewheelers club</a>
<li><a href="...">rec.bicycle.* FAQ</a>

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
Received on Wednesday, 31 December 1997 07:13:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:46 UTC