Previous Message
Next Message

Simple clearing of floats

Sent by Sander_Maréchal on 1 March 2005 23:11


Alex Robinson wrote:
> http://www.456bereastreet.com/archive/200502/simple_clearing_of_floats/
> 
> I haven't noticed this mentioned on the list so far, but Roger Johansson 
> and others have realised/discovered a method of clearing floats (or 
> rather making elements expand to contain their children) that is as 
> semantic as the PIE easy clearing method, but much much simpler. It also 
> has the advantage that it doesn't inadvertently clear any previous floats.

I saw someone add it in a new page to the Wiki today and played around 
with it. I could not find any flaw except that IE wants an explicit 
width set on the containing element. I just merged that new wiki page 
with the other clearing methods at:
http://css-discuss.incutio.com/?page=ClearingSpace


-- 
Sander Maréchal
Lone Wolves Game Development
http://www.jejik.com/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: