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