wrong formula | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

wrong formula

in the article we can find the relation between px and ems using following formula: "To calculate the em size, just use the following formula: em = pixels / 16" that formula is wrong. 1em = 16px

11th Mar 2017, 4:20 AM
asep sudarman
asep sudarman - avatar
1 Answer
+ 1
Your and their formulas are the same. Since 1em is 16px, you multiply by 16 to convert from em to px, and you divide by 16 to convert the other way.
12th Mar 2017, 8:47 PM
Igor B
Igor B - avatar