There is no direct conversion.  You cant make such a conversion. 

1 pixel is a unit on the screen.  There are something like 76 pixels per
inch on a PC screen or 96 pixels per inch on a mac screen.

One em is the width of the character "M" in whatever size the user has set
as his default font size. It's a variable set in the user's browser.

Therefore, one em can be any size at all, depending on what setting the user
has.   14 pixels will always be the same distance regardless of what setting
the user has on his font size.

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Andrews
Sent: Monday, 21 June 2004 5:12 PM
To: [EMAIL PROTECTED]
Subject: [WSG] pixel to ems converter

Hi,
Just thought I ask if there is bit of math or a web site that can accurately

convert pixels to ems.
If I want to size an image in ems so it will scale with text re-sizing I 
kinda doing it manually at the moment by dividing by 12 and guessing from 
there.
I thought there might be a site somewhere that you select your font etc and 
imput you pixel size and it does an acurate conversion. Or am I 
dreeeeeaaaaammmmmm..in'

Thanks if anyone can answer


*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to