WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Font size question

for

From: Tom Gilder
Date: Oct 29, 2002 7:56PM


On Tuesday, October 29, 2002, 9:28:02 PM, Leo Smith wrote:
> The solution to this issue seems to be to use font sizes specified
> in % rather than em.

The problem being that you then run into problems with Opera. Opera
calculates % incorrectly, making text 1px smaller than it should be.

The easiest way around both these bugs is to use em sizing for
everything, except the base font, where you do:

body {
font-size: 80%;
font-family: verdana, etc, sans-serif;
}

html>body {
font-size: .8em;
}

Hopefully Opera will fix this (incredibly annoying) bug for v7.


Cheers
--
Tom Gilder
http://tom.me.uk/


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/