0

What does em stand for

20th Jan 2017, 11:56 AM
Petar Petroff
Petar Petroff - avatar
3 Respostas
+ 3
@Greg Oboroceanu: Look at question tags, it's about css ^^ @Petar Petroff: In CSS, 'em' is a special unit relative to the font size, so in example, if you define a padding for a <div> in 'em' unit, it will grow proportionally if you change the font size... Useful for use relative unit, without refering to the parent container, as do the percentage ( % ) unit.... Other useful relative specific units are 'ex' ( as 'em' refer to the font size: 'em' stand for espacement of letter m, while 'ex' for the 'x', which are both common width -- 'm' the wider space fr a char, 'x' the average one ), 'vw' and 'wh' ( for 'viewport width' and 'heigth', refering to the viewport, as the font size refered one, pass trough limitations of the parent referer ).
21st Jan 2017, 12:38 AM
visph
visph - avatar
+ 1
'em' stands for 'emphasise' In html you cam use <em></em> tag to emphasise some text
20th Jan 2017, 4:27 PM
Greg Oboroceanu
Greg Oboroceanu - avatar
0
@visph Got you, didn't notice the tags. https://www.w3.org/Style/Examples/007/units.en.html
23rd Jan 2017, 9:39 AM
Greg Oboroceanu
Greg Oboroceanu - avatar