Alex Rivera | Logout

What is height in em?

Asked 2010-08-09T07:13:01.903
21

I am still not clear what does size in em mean?
I have worked px, pt in CSS.
What would 0.8, 1.0 and 1.2 em mean?
I have seen height's in CSS like: height: 0.8em; or height: 1.2em;
How is it calculated?

Edit
Report

2 Answers

3

1em is equal to the current font size. 2em means 2 times the size of the current font. E.g., if an element is displayed with a font of 12 pt, then '2em' is 24 pt. The 'em' is a very useful unit in CSS, since it can adapt automatically to the font that the reader uses.

more here

answered 2010-08-09T07:18:00.910
2

An em is the width of the letter "m" (in your current font and size).

answered 2010-08-09T07:13:53.993

Your Answer