Previous Message
Next Message

Easy Clearing and clear:both issue

Sent by Ingo Chao on 22 March 2006 01:01


clear:both on the pseudo-element 'clears' any float that is within the 
same block formatting context (here: body).

The pseudo-element sticks to the div.z, but the clearance moves it below 
the floated leftnav.

Therefore, the pseudo-element stretches the element to which it is attached.

This might be easier to see when {height: 0; visibility: hidden;} is 
removed: the content-period slides under the float.

Ingo
-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
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: