What web browsers apply a default CSS magin and/or padding on the body element by default?
I know Google Chrome applies a 8px margin, and I've heard that other browsers have a default padding as well.
Thanks!
What web browsers apply a default CSS magin and/or padding on the body element by default?
I know Google Chrome applies a 8px margin, and I've heard that other browsers have a default padding as well.
Thanks!
Most browsers have default margin for
body
element. IE9 gives 15px vertical and 10px horisontal, Opera 11 gives 8px, yet this can and does change between versions, so you realy should incorporate css reset in your stylesheets, be it home-brewpadding:0;margin:0;
, Eric Meyer's or YUI.Just use a simple test page, like this one, and try all the browsers you're interested in. From what I've seen, browsers seem to have a non-zero default for
margin
, and 0 forpadding
.