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.

css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: