CSS: Base styles on body or html?
Posted
by Svish
on Stack Overflow
See other posts from Stack Overflow
or by Svish
Published on 2010-03-17T14:48:13Z
Indexed on
2010/03/17
14:51 UTC
Read the original article
Hit count: 163
css
|best-practices
When I declare some base styles for my site I have used to do that on the body tag. Like for example
body {
font-size: medium;
line-height: 1.3em;
}
But I have also seen people do things like that on the html tag. And on both. Where should it be done? Should some be at one and some at the other? Should all be on one of them? Or does it simply not matter at all? Or?
© Stack Overflow or respective owner