Topic: Relative font sizing

I'm customizing my css to make all the font sizes relative (em rather than px). I wondered :

1. Was a reason for making the size fixed in the first place?
2. Could we have an alternative stylesheet with font sizes in em for a 1.2.x release?

Perhaps an alternate print stylesheet would be nice too - is anyone working on this?

2

Re: Relative font sizing

That's the kind of thing you can easily add yourself, as far as I hear.  Just write your own stylesheet(s) and add a link to it in the header template.

3

Re: Relative font sizing

1. All font sizes are relative apart from the initial font-size for non IE browsers. The reason for specifiying an initial font-size in pixels for Gecko browsers is that the Gecko rendering engine works much better with pixels than anything else. Ideally the initial font-size should be 10px with all following font-sizes in em's which would eliminate some of Geckos horrible rounding errors.

2. Why. Everything zooms in all current browsers including IE as it is.

Print-stylesheet. Maybe I will get around to it sometime.

Re: Relative font sizing

Didn't know that about the 10px thing in Gecko, thanks. Do you know any more details on this - why is it better?

Cheers

5

Re: Relative font sizing

marvincooper wrote:

Didn't know that about the 10px thing in Gecko, thanks. Do you know any more details on this - why is it better?

Cheers

http://www.positioniseverything.net/gecko/mozshift.html
http://www.satzansatz.de/cssd/geckogaps.html

The only reason I say 10px is best is because if you then use 1.1em 1.3em etc for larger sizes they work out at exact pixels rather than fractions. But whatever way you do it, Gecko is better with pixels than ems and percentages.