On Jul 13, 2012, at 9:04 PM, Philippe Wittenbergh wrote:

> Indeed it is what I thought...When the parent element (#header in your case) 
> has no border and no padding, the top/bottom margins of the child block-level 
> element merge with the margins of the parent block and/or or the top/bottom 
> margins of the preceding/subsequent block-level element. Borders and padding 
> (-top/-bottom) prevent those margins form protruding outside of that div.
> 
> The whole mechanism is described here:
> http://www.w3.org/TR/CSS21/box.html#collapsing-margins

thank you, Philippe!

John

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to