What is difference between px and em? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is difference between px and em?

9th Aug 2016, 5:27 AM
Gp vishnu
Gp vishnu - avatar
7 Answers
+ 5
1em=16px
10th Aug 2016, 7:05 PM
yash patel
yash patel - avatar
+ 3
em=px/16
11th Aug 2016, 2:58 PM
Fe"NiK"s
+ 2
px et % : utilisation pour les blocs et em : utilisation pour les textes
4th Sep 2016, 6:13 PM
HOUCHAT Khaled
HOUCHAT Khaled - avatar
+ 1
px et % : used for blocs and em : used for textes
15th May 2017, 5:38 AM
HOUCHAT Khaled
HOUCHAT Khaled - avatar
0
Px is for pixel size and em is a default size measurement of font Px=em*16 Em=16/px
15th Aug 2016, 3:30 PM
Gautam G G
Gautam G G - avatar
0
px=1/16em
18th Aug 2016, 10:46 AM
sohel rana
sohel rana - avatar
0
px=1/16em
18th Aug 2016, 10:46 AM
sohel rana
sohel rana - avatar