2 PX to EM

Result

2 px = 0.125 em


Explanation

  • Base — 16
  • EM — 0.125

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

CSS code for 2 PX to EM

p { font-size: 0.125em }

HTML (inline CSS):

<p style="font-size: 0.125em">Hello World<p>
Open PX to EM converter