Re: [CSS21] Does the root element establish a block formatting context?

On 9/08/2010 8:30 PM, Anton Prowse wrote:

> Note that the root element possesses all the characteristic properties
> of an element which establishes a BFC, including in relation to margin
> collapsing.


And this is shown as true when using floats.

<!DOCTYPE html>

<style type="text/css">
html {background: silver;}
body {background: white;}
</style>

<div style="float:left; height:2500px; background:lime;">float</div> 
some text



-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo

Received on Thursday, 17 March 2011 13:04:32 UTC