20 PX to REM

Result

20 px = 1.25 rem


Explanation

  • REM — 1.25
  • Pixel base — 16

To convert 20 pixels to REM with pixel's base 16 you need to divide pixels value by base value, in our case: 20 / 16. In result we'll receive that 20 pixels with base 16 is equal to 1.25 rem

20 / 16 = 1.25 rem

CSS code for 20 PX to REM

p { font-size: 1.25em }

HTML (inline CSS):

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