42 PX to EM

Open PX to EM converter

Result

42 px = 2.625 em


Explanation

  • Base — 16
  • EM — 2.625

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

CSS code for 42 PX to EM

p { font-size: 2.625em }

HTML (inline CSS):

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