30 PX to EM

Open PX to EM converter

Result

30 px = 1.875 em


Explanation

  • Base — 16
  • EM — 1.875

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

CSS code for 30 PX to EM

p { font-size: 1.875em }

HTML (inline CSS):

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