8 PX to REM

Result

8 px = 0.5 rem


Explanation

  • REM — 0.5
  • Pixel base — 16

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

8 / 16 = 0.5 rem

CSS code for 8 PX to REM

p { font-size: 0.5em }

HTML (inline CSS):

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