Re: CSS and font sizing
by "Darrell King" <darrell(at)webctr.com>
|
Date: |
Thu, 27 Jul 2000 07:39:34 -0400 |
To: |
"Gibson, Timmi" <TimmiG(at)verbatim.com.au>, "'hwg-basics list'" <hwg-basics(at)hwg.org> |
References: |
com |
|
todo: View
Thread,
Original
|
|
We are using ems to set font sizes, as the relatives you mentions (x-small
and family) do not allow resizing by the user. ems do, but are trickier to
use.
I leave the body definition without a size setting, unless I am trying to
make the whole page smaller for some reason. Then, I usually define the p
tag as .9em, depending of course on the font face.
Some Macs seem to have a problem with font sizing. Win98 NN 4.51 definately
displays the fonts a touch larger than IE5, but the Macs with NN often
complain that the fonts are tiny, although changing them to pts will display
in a more uniform manner. This is a bit of a burdern, as we wish to leave
the user with the ability to resize (pt does not), but we also don't wish to
*force* them to resize.
Given all that, em is the best we have found so far. Just remember that
using it can cause an element to resize in relation to it's parent, so
placing a strong tag defined as .9em in a paragraph already defined as .9em
and result in the contents of the strong tag being 1 size smaller than the p
size, not matching it....
D
----- Original Message -----
From: "Gibson, Timmi" <TimmiG(at)verbatim.com.au>
I'm starting to implement CSS on my website and am having some problems
geting consistent font sizing across browsers.
My site used font face="Verdana,geneva,Arial,sans-serif" size="-1" widely
and I'm trying to get the correct approximation to this using CSS. If I use
font-size : x-small; this looks about right in IE5 but way too small in
Netscape 4.7. I understand its all relative to the default size set in the
browser (which I havent changed because I figure most people don't and I
want to cater for the majority of my visitors) but the old HTML way
displayed the font size approximately the same in both.
Any suggestions? Please email me directly as well as to the list as I only
get the digest and I need to get this sorted ASAP!
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA