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

Re: Float overflowing behavior

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Wed, 14 Aug 2002 22:26:54 -0400
To: Lydia Lalopolis <lalopolis2@firstcampus.de>
Cc: www-style@w3.org
Message-ID: <20020814222654.A18041@is10.fas.harvard.edu>

On Thursday 2002-08-15 04:09 +0200, Lydia Lalopolis wrote:
> #foo {
>     float:    left;
>     width:    10em;
> }
> #foo:after {
>     content:  " ";
>     display:  block;
>     height:   0;
>     clear:    both;
> }
> 
> No need for such a new property. Just for better browsers. ;)

This shouldn't do what you want, since :before and :after have slightly
misleading names.  The :after pseudo-element generates a last child, not
a next sibling, which is what's needed here.

-David

-- 
L. David Baron        <URL: http://www.people.fas.harvard.edu/~dbaron/ >
Received on Wednesday, 14 August 2002 22:26:55 GMT

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