RE: Units Re: Relative Font Size

Chaals wrote:
> This [scaling images] is one case where em and percentages are going to do different 
> things. The fact that em is firmly tied to the font is helpful for 
> scaling some stuff, because percentages are sometimes related to the 
> font and sometimes to the viewport (and in some bugs they're 
> related to 
> a magic unguessable number).

Sorry folks, didn't see this post when I replied to John's (that'll teach me to scan for subject lines; or to get a mail client that can handle threads ;-) ).
I can't remember any times when specifying font sizes in % has created any presentational problems but if there are potential css parsing bugs it probably _is_ safer practice to specify units in ems wherever possible.

One final thought, since font size is inherited, specifying it in the rules for body should get round any potential problems shouldn't it? Has anyone come across css bugs where a UA suddenly decides that a font with a % size should be set relative to something other than it's parent container?

--J.

 
The information in this email is confidential. The contents may not be disclosed or used by anyone other than the addressee.  If you are not the addressee, please tell us by using the reply facility in your email software as soon as possible. Sheffield City Council cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network.  If you suspect that the message may have been intercepted or amended please tell us as soon as possible.

Received on Thursday, 19 June 2003 03:43:35 UTC