+ 3

What does pc and em means?

15th Jan 2017, 1:14 PM
Andrei Iliescu
Andrei Iliescu - avatar
7 ответов
+ 5
'pc' is 'pica' a font size unit. 'em' is a special unit based on font height... so a margin of 1em represent a margin of same size as font.
15th Jan 2017, 1:27 PM
visph
visph - avatar
15th Jan 2017, 1:26 PM
Jani Sinkkonen
Jani Sinkkonen - avatar
+ 3
as @Jani Sinkkonen said... Generaly default font-size ( at least on desktop browsers, it more complicated on mobile devices ) is arround 16px, but in a hand you can have some inconsistences between browsers default values, and on the other hand you cannot be sure for future ^^
1st Feb 2017, 8:29 AM
visph
visph - avatar
+ 2
1em is relative to the elements font-size. If you define font-size to 20px in some parent element 1em equals to that.
1st Feb 2017, 8:24 AM
Jani Sinkkonen
Jani Sinkkonen - avatar
+ 1
1em = 16px
1st Feb 2017, 8:20 AM
majid abbaszadeh
majid abbaszadeh - avatar
+ 1
pc - pica
6th Feb 2017, 5:59 AM
Shubham Shekhar Mahapatra
Shubham Shekhar Mahapatra - avatar
0
I am fairly certain 1em only equals 16px by browser default. em is the size of the text from the parent tag (if there is no size defined it would be default ) or the size of the letter m. This means that if you set the text to 10px and set a child tag to 4em it would be equivalent to 40px
11th Feb 2017, 11:21 PM
Kurios Gaming
Kurios Gaming - avatar