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