31 PX to EM

Open PX to EM converter

Result

31 px = 1.9375 em


Explanation

  • Base — 16
  • EM — 1.9375

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

CSS code for 31 PX to EM

p { font-size: 1.9375em }

HTML (inline CSS):

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