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