W3C home > Mailing lists > Public > public-html@w3.org > July 2009

Default margins for new elements

From: Simon Pieters <simonp@opera.com>
Date: Sat, 18 Jul 2009 13:40:15 +0200
To: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.uw9hc8emidj3kv@simon-pieterss-macbook.local>
I set up a user style sheet with

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

taken from


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


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

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:48 UTC