I have noticed that you can use 1em and it will look different on different sites.
What is an em in proportion to?
- The font used?
- The biggest font size?
- The page width/height?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See http://w3schools.com/cssref/css_units.asp
An EM is relative to the current element it is defined on. If you use relative sizes (like
0.9em), they multiply and can lead to unexpected dimensions.Now, the default size of a font is not standard between browsers. And there’s an issue with IE (at least older IE) when setting the font to a specific pixel unit. A good overview for font sizing can be found on A List Apart.