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