Default margins for new elements

I set up a user style sheet with

article, aside, figure, nav, section {
   margin-top: 1em; margin-bottom: 1em;
}

taken from

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-xhtml-syntax.html#margins-and-padding

Then I checked a few sites from the HTML5 Gallery. Some of them looked  
differently than the author intended:

http://laibcoms.asia/
http://en.susuh.de/
http://imgmi.net/index.php

Clearly, authors don't expect these elements to have default margins.

I suggest that article, aside, nav and section not have default margins.

figure has default margins on the left and right, so could keep the top  
and bottom margins too.

dialog could maybe have default top and bottom margin, just like dl.

-- 
Simon Pieters
Opera Software

Received on Saturday, 18 July 2009 11:40:57 UTC