8 PX to EM

Open PX to EM converter

Result

8 px = 0.5 em


Explanation

  • Base — 16
  • EM — 0.5

To convert 8 pixels to EM with base 16 you need to divide pixels value by base value, in our case: 8 / 16. In result we'll receive that 8 pixels with base 16 is equal to 0.5 em

CSS code for 8 PX to EM

p { font-size: 0.5em }

HTML (inline CSS):

<p style="font-size: 0.5em">Hello World<p>