I’m a bit confused, and after a testing, even more confused. Why has the author chosen to declare font-size in this manner:
/* xx-small.css*/
body,
body div,
body p,
body th,
body td,
body li,
body dd {
font-size: xx-small;
voice-family: “\”}\”“;
voice-family: inherit;
font-size: x-small
}
Wouldn’t the following be enough?
body { font-size: xx-small }
With the latter, everything in the body now is xx-small, no? From my testing, the author’s code actually causes some inherietance problems. Is there a point that I’m missing in writting it out the way the author has here?
72 Reader Comments
Back to the ArticleFernando d.s.
I’m a bit confused, and after a testing, even more confused. Why has the author chosen to declare font-size in this manner:
/* xx-small.css*/
body,
body div,
body p,
body th,
body td,
body li,
body dd {
font-size: xx-small;
voice-family: “\”}\”“;
voice-family: inherit;
font-size: x-small
}
Wouldn’t the following be enough?
body { font-size: xx-small }
With the latter, everything in the body now is xx-small, no? From my testing, the author’s code actually causes some inherietance problems. Is there a point that I’m missing in writting it out the way the author has here?
T.
Hi Fernando, look this article for more information about relative font sizing:
http://www.alistapart.com/articles/sizematters/