Hey Larry,
Not sure if you've looked into rem values, but they're the same as em
only they reference the parent value. Kinda like using inherit, but a
bit different. I usually define my base like this:
body { ... font-size: 62.5%;
line-height: 1em; ... }
So anything else I do from there is:
.example { ... font-size: 1.6rem;
line-height: 2rem; }
The reason I use 62.5% is because it mods the browser's default
font-size to around 10px (most browsers use 16pt as a base size) so any
em/rem value I use is a base 10 multiple, which is easy for me to keep
straight.
Normalize CSS
(
http://necolas.github.com/normalize.css/) sets all this up for you, but
I would highly suggest using rems with a pixel based fall back
prefacing your declarations:
.example2 (font-size: 16px;
line-height: 20px; font-size: 1.6rem; line-height: 2rem; }
Just like vendor prefix fall-backs.
Hope this helps,
Tuesday, April
17, 2012 2:37 PM