Here's a very good website to convert px to ems or ems to px with also comparison table:
http://pxtoem.com/
Main Topics
Browse All TopicsHi -
I'm just exploring using ems instead of px for font-sizes and div widths and I have a few questions.
I'm OK with measuring fonts in ems but is it really practical to measure div's widths in ems?
If so, can I use ems for the width of some divs and then use pixels or percent for the width of others?
I've read that 16px is the default font size for browser display. (1em = 16px)
Is this an absolute, cross-platform and cross-browser truth?
If I use ems to size the width of my web page do I need to make a conditional statement with a different # of ems to get the same size in IE?
How do I calculate the difference?
I've learned a lot reading the knowledge base here and elsewhere. I'd just like to fill in these gaps.
TIA your expert answers.
d2
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here's a very good website to convert px to ems or ems to px with also comparison table:
http://pxtoem.com/
Hi myderrick - that link was one of the sites that left me with questions. Thanks anyway.
Hi therealteune -
Thanks for pxtoem. The tool allows for making ANY font-size the base size but seems to favor 16px. So I guess that handles my question 3.
I followd a link from pxtoem to Blueprint and see that this particular grid system only use ems for fonts (that handles my first and second question somewhat). I also noticed that they have a conditional ie.css but I was not able to snag it to try to understand how it was being used.
So my remaining question is regarding differences between IE browsers and other browsers. Whether I'm using px or ems (although ems have become a less attractive measurement for layout) - are there differences? How are the differences calculated?
I hope you or someone else knows.
Thanks for the very good input.
d2
Business Accounts
Answer for Membership
by: myderrickPosted on 2009-09-17 at 15:31:03ID: 25361698
I read this article yesterday. It helped to understand ems and px etc.
/cs/typeme asurements /a/ aa04280 3a.htm
Check it out:
http://webdesign.about.com
Good luck
MD