2.2.6 [CSS-Level2-2009] Section 8.3.1, Collapsing margins

C0011:

The specification states:

 Adjoining vertical margins collapse, except: 
     Margins of the root element's box do not collapse.

Quirks Mode and IE7 Mode (All Versions)

Margins of root element boxes do collapse.

C0012:

The specification states:

 Margins between a floated box and any other box do not collapse (not even 
 between a float and its in-flow children).

Quirks Mode (All Versions)

The vertical margins between a floated box and any other box do collapse.

C0013:

The specification states:

 Vertical margins of elements that establish new block formatting contexts (such as 
 floats and elements with 'overflow' other than 'visible') do not collapse with 
 their in-flow children.

Quirks Mode and IE7 Mode (All Versions)

An element with overflow set to visible collapses with its in-flow children.

C0014:

The specification states:

 Margins of inline-block elements do not collapse (not even with their in-flow 
 children).

Quirks Mode and IE7 Mode (All Versions)

The margins of sibling inline-block elements do collapse.

Show: