42 PX to REM

Open PX to REM converter

Result

42 px = 2.625 rem


Explanation

  • REM — 2.625
  • Pixel base — 16

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

42 / 16 = 2.625 rem

CSS code for 42 PX to REM

p { font-size: 2.625em }

HTML (inline CSS):

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