20 PX to EM

Open PX to EM converter

Result

20 px = 1.25 em


Explanation

  • Base — 16
  • EM — 1.25

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

CSS code for 20 PX to EM

p { font-size: 1.25em }

HTML (inline CSS):

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