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

Re: CSS2.1 Various Inline-related Stuff

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 4 Sep 2002 01:17:38 +0000 (GMT)
To: fantasai <fantasai@escape.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.21.0209040114160.6285-100000@dhalsim.dreamhost.com>

On Tue, 3 Sep 2002, fantasai wrote:
> Ian Hickson wrote:
>> Incidentally, now that we have ::list-marker, we can use :before and
>> content:'' to solve the problem I raised over 2 years ago:
>> 
>>    http://lists.w3.org/Archives/Public/www-style/2000Jun/0008.html
>> 
>> So there is definitely a use for generating empty inline elements.
> 
> I was just looking at that yesterday, actually. (And wondering why
> list layout is high-security...)

High security?


> "content: ''" should do what you want even if '' does not generate
> an inline since :before is an inline by itself.

Eh? If ::before always generated an inline, even for the initial value 
of 'content', then margin collapsing would never work, and there would be 
a LOT of empty inline elements everywhere.


> Also, if the list margins are line height, you can work around the
> problem by using an unnoticeable bit of padding to break the margin
> collapse.

As it says in the original mail (reference above), padding and margins
won't cut it, because however much padding you use, the marker box will
still move down with the text. You need to create a line box.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 3 September 2002 21:17:41 GMT

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