30 PX to REM

Result

30 px = 1.875 rem


Explanation

  • REM — 1.875
  • Pixel base — 16

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

30 / 16 = 1.875 rem

CSS code for 30 PX to REM

p { font-size: 1.875em }

HTML (inline CSS):

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