1 EM to PX
Result
1 em = 16 px
Explanation
- Base — 16
- Em value — 1
To convert 1 em to pixels with base 16 you need to multiply base value by em value, in our case: 16 × 1. In result we'll receive that 1 em with base 16 is equal to 16 pixels (px)
CSS code for 1 EM to PX
p { font-size: 16px }
HTML (inline CSS):
<p style="font-size: 16px">Hello World<p>