W3C home > Mailing lists > Public > www-style@w3.org > May 2002

Re: Hanging indent

From: James Craig <james@cookiecrook.com>
Date: Tue, 21 May 2002 21:35:37 -0500
To: "Joe Clark" <joeclark@joeclark.org>, <sicking@bigfoot.com>, <fantasai@escape.com>, <ewexler@stickdog.com>
Cc: <bert@w3.org>, www-style@w3.org
Message-ID: <JFEGIJBOOAMICAMNFLBEMECICCAA.james@etan.wexler>

Joe Clark wrote:

> I react with alarm at everyone's suggestion that hanging indents can
> simply be kluged into place.
> 
> (1) *I* can't figure them out.

Hi Joe... I hope this is what you need but I don't think I'd call it klugey.
It's seems to me to be the intended use of the CSS properties. I've tested
it in several browsers on Windows and Mac platforms. It seems to work in all
4+ version browsers besides Opera.

p {
  margin-left:25px;
  text-indent:-25px;
  }

I have an example on my site:
http://www.cookiecrook.com/webx/hanging-indent.htm

Like I said, I hope that's what you want. If not, let me know what you
intended. The only bugs I've had with this appear to be with Netscape 4 nto
recognizing a complex selector such as "table#data td.list p" or something
like it. But then, NS4 has that problem with all CSS, not just hanging
indents. ;)

Later.
James Craig
                                                                                                                                             
Received on Tuesday, 28 May 2002 04:49:32 GMT

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