On 9/9/10 8:42 AM, Claude Needham wrote:
I have developed a practice of using 100% in the body and then using
em elsewhere to set sizes.
Such as:
body {
font-size: 100%; /* base my size on user default */
font-weight: normal;
font-family: helvetica, arial, sans-serif;
}
h1 {
font-size: 1.3em;
}
I have vague memories of doing this because the percentage handled a
glitch in one browser or another. Can't recall the details now. Is
this a case of age invented memories, or was there such a
consideration at one time that made the % in body a good idea even if
one had a personal preference for em in the rest of the style sheet?
Claude
Claude,
It is used specifically to defeat the "em font re-sizing bug in IE"
[fonts go totally goofy when re-sized in IE if 100 percent is not
declared on html or body] -- declaring 100% on html is the usual
method, but the way you have used it works, too...
html {font-size: 100%;}
body {font: 1em helvetica, arial, sans-serif; }
h1 {font-size: 1.3em; font-weight:normal;}
Best,
~d
--
:: desktop and mobile ::
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/