This is a test of default margins

This is a DIV

A: This is a paragraph

B: This is another paragraph. If the browser collapses margins properly, the gap between paragraphs A and B should equal to whichever is the larger of the gap between A and the DIV above it, or the gap between B and the DIV below it.

This is a DIV
This is another DIV

This is an H1 in the test of default margins

This is another DIV

This is an H2. The DIVs either side have no default margins, so this just shows heading margins

This is another DIV

What have we learned?

Browsers have slightly different defaults for heading sizing and margins. Here's a screenshot of this page as rendered by Chimera, IE/Mac, Safari, Opera 6, iCab and OmniWeb (66kb PNG). All browsers were set to have a default font size of 16pt. This is larger than the defaults for Safari, OmniWeb and iCab.

CodeBitch 19 January 2003