Does using em as css unit solve the problem in difference in monitor resolution (800×600 vs. 1024×768)?
Does using em as css unit solve the problem in difference in monitor resolution
Share
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.
Yes,
emsets the css targets size relative to the pre-calculatedem blockof the parent. See wikipedia for more info on what an Em is.Basically, as the resolution goes up, the computed size of an Em goes up to. The size of the Em block is a function of the resolution, and the users-preference (font-size) — so you get the best of both worlds.
This is why W3C suggests using Em for fluid displays.