[thelist] Confused by 'ems'...

John Pye john.pye at purplehouse.com
Wed Nov 22 08:26:53 CST 2000


> something is just not getting through my head
> on using the 'em' attributed for type size!

I have avoided using ems for the reason in
http://www.richinstyle.com/bugs/netscape4.html

This document suggests that you use px as the only reasonably universal type
measure. On my site however, I still found I was having problems with my
desired specification of line spacing of fonts with Netscape v4, so I used a
different style sheet just for Netscape viewers:

NETSCAPE VERSION:
body,P,li,div{ font: normal 8pt "Arial", Geneva, sans-serif;color: #666666}

THE REST VERSION:
body,P,li,div{ font: normal 10px/12px arial, Geneva, sans-serif;color:
#666666}

In Cold Fusion, I did the Netscape test by checking the HTTP_USER_AGENT
string for the presence of both 'Mozilla/4.0' AND 'Nav' substrings.

I don't know if it's bulletproof before version 4 browsers, which may be a
concern.

JP







More information about the thelist mailing list