There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
black screen blue screen blue screen of death boot bsod computer connection crash css dell display driver drivers email error firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem ram router security slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
pixels to em's?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,198 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
11-Feb-2006, 06:42 PM #1
pixels to em's?
I searched Google, and even asked on a few W3 mailing lists. No dice.

Every site I found on Google has said "divide pixels by 16 to get the size in em for images" but that's wrong. Dividing by 16 makes the images smaller than they really are.

So, does anyone know the actual number to divde pixels by to get the number in em?

Having em's in images allows them to be scalable in Firefox and Internet Explorer (Opera does this by default) when making text larger or smaller in the browser.
__________________
-----------------------------
| 404: Name Not Found |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
11-Feb-2006, 08:52 PM #2
Umm... Could you please explain ems?
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
11-Feb-2006, 09:52 PM #3
OK, I still don't know what ems are but I found this on Google:

Y = The number of pixels
X = The number of ems

Xem = 0.083333 * Ypx for 75% font size
Xem = 0.0715 * Ypx for 87.5% font size
Xem = 0.0625 * Ypx for 100% font size

Does that make sense to you?
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,198 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
11-Feb-2006, 10:15 PM #4
Quote:
Originally Posted by Eriksrocks
OK, I still don't know what ems are but I found this on Google:

Y = The number of pixels
X = The number of ems

Xem = 0.083333 * Ypx for 75% font size
Xem = 0.0715 * Ypx for 87.5% font size
Xem = 0.0625 * Ypx for 100% font size

Does that make sense to you?
Number of em times Number of px, makes no sense to me (really sucks at math)
the * means 'multiply' that's all I know


*****

About your question on what em's are:

They are a unit of mesure for text/image size.

1em is about "average" text size in the browser, or about 10-12px text size.

0.9em is 1 fraction of a full unite of mesure. So 0.9em is slightly smaller than 1em.

Does any of that make sense?

Here are some definitions on google: http://www.google.com/search?hl=en&l...en&q=define:em
__________________
-----------------------------
| 404: Name Not Found |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
12-Feb-2006, 05:37 PM #5
OK:

1em = 1px * 0.083333 (for 75% font size)
1em = 1px * 0.0715 (for 87.5% font size)
1em = 1px * 0.0625 (for 100% font size)

In other words:

1em = 0.083333px (for 75% font size)
1em = 0.0715px (for 87.5% font size)
1em = 0.0625px (for 100% font size)

If this seems way off or doesn't make sense to you, sorry, I found it here:
http://www.macosxhints.com/article.p...51124024622502
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:10 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.