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

Re: Float overflowing behavior

From: Lydia Lalopolis <lalopolis2@firstcampus.de>
Date: Thu, 15 Aug 2002 04:09:04 +0200
Message-ID: <3D5B0D40.F991DE@firstcampus.de>
To: www-style@w3.org

stylo~ wrote:
> 
> The best way to correct this deficiency is to add a property as suggested,
> or maybe to make the clear property work on floats to force a break
> afterwards, and the container they sit in to stretch, just as the sample
> garbage code does.

#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. ;)

-- 
Lydia
Received on Wednesday, 14 August 2002 22:06:43 GMT

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