+ 5

What does the unit 'em' mean?

14th Jul 2016, 9:22 PM
Merukeru
10 Respostas
+ 11
Relative to the font-size of the element (2em means 2 times the size of the current font)
15th Jul 2016, 7:46 AM
Awele Omeligwe
Awele Omeligwe - avatar
+ 8
if font-size is not mentioned , then 1em is equal to 16pixels
18th Jul 2016, 8:02 PM
Veeravignesh KR
Veeravignesh KR - avatar
+ 4
em = PX/16
20th Aug 2016, 4:35 AM
AbbasEbadian
AbbasEbadian - avatar
+ 3
if author of a page sets the font-size 1 em then the user gets 1 em or 16 px font-size at 100% zoom. if the user zooms out the browser at , say, 80% then the font-size becomes 13 px. if the user zooms in the browser at, say, 180% then the font-size becomes 29 px. if author of a page sets the font-size 2.5 em then the user gets 2.5 em or 40 px font -size at 100% zoom. if the user zooms out the browser at , say, 70% then the font-size becomes 28 px. if the user zooms in the browser at, say, 160% then the font-size becomes 64 px. if author of a page sets the font-size 0.5 em then the user gets 0.5 em or 8 px font at 100% zoom. if the user zooms out the browser at , say, 60% then the font-size becomes 5 px. if the user zooms in the browser at, say, 150% then the font-size becomes 12px.
27th Nov 2016, 6:00 AM
Sanhita Mukherjee
Sanhita Mukherjee - avatar
+ 2
it is a unit that is equal to 16px
11th Jan 2017, 9:26 PM
Louis Carter
Louis Carter - avatar
+ 2
As much as we can have units of length in inches or centimetres ... temperature in degrees Celsius or Fahrenheit... we can measure picture size in px or em, where 1em = 16px ...or... 1px = 1/16em
29th Jan 2017, 3:14 PM
Ishumael Matewa
0
em=px/16 you can use whichever style is easier for you though
4th Dec 2016, 6:37 PM
Sean Mayo
Sean Mayo - avatar
0
It is =px/16 1 em = 16 px
8th Jan 2017, 7:14 PM
Muhammad Rabi
Muhammad Rabi - avatar
0
em means strong
9th Jan 2017, 4:58 AM
stephen haokip
stephen haokip - avatar
- 5
I am conformed that you didn't know HTML...
7th Aug 2016, 3:34 PM
Syed Abdul Fazeem