Re: Non-transparent Body Margins

Michael Jansson wrote:
> ...I'm getting a page with colored margin. I believe the spec is pretty 
> clear that margins are transparent, thus letter the background of the 
> containing block to show though. However, I think I have read somewhere 
> that there is an exception for the body/root element. 

CSS2.1 section 14.2 (The background), paragraphs 3 and 4.

> A second question would be why there is such a difference between the 
> result in browsers when the DTD is removed from the code above?

Because then you trigger quirks mode.

-Boris

Received on Tuesday, 14 April 2009 14:42:59 UTC