18 PX to EM

Result

18 px = 1.125 em


Explanation

  • Base — 16
  • EM — 1.125

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

CSS code for 18 PX to EM

p { font-size: 1.125em }

HTML (inline CSS):

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