Bernat Lleonart wrote:
> Hello,
>
> I usually specify font-size on the body as 1em, and then, as the main
> text of the page has to be 12px, I have to declare each p, li, etc. to
> be .75em.
>
> I've been told to put that value (.75em) right on the body, so I won't
> need to reduce font-size for every element that has to be 12px.
>
> I don't know which of those options is better, and why. I'd like to
> know your opinion about it.
>
> Thank you.
>
>
When using em for font-setting it is very important to set percent on
html in order to cure a bug in the IEs. Without percent set on html, the
fonts will go totally goofy when scaled.
1em on the body is user default and it may best to leave and honor that
and not mess with it. Then target individual selectors as you see fit
(as you've been doing). Although some of us prefer to let the primary
content p inherit default (1em) from the body declaration (in other
words the attempt is not to tamper with the users reading preference).
So using em your style sheet would read:
html {font-size: 100%;} /*user default*/
body {font-size: 1em;} /*user default*/
And target individual selectors with the em value you wish throughout
the remainder of the style sheet.
--
A thin red line and a salmon-color ampersand forthcoming.
http://chelseacreekstudio.com/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/