45 PX to EM

Open PX to EM converter

Result

45 px = 2.8125 em


Explanation

  • Base — 16
  • EM — 2.8125

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

CSS code for 45 PX to EM

p { font-size: 2.8125em }

HTML (inline CSS):

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