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