32 PX to REM
Result
32 px = 2 rem
Explanation
- REM — 2
- Pixel base — 16
To convert 32 pixels to REM with pixel's base 16 you need to divide pixels value by base value, in our case: 32 / 16. In result we'll receive that 32 pixels with base 16 is equal to 2 rem
32 / 16 = 2 rem
CSS code for 32 PX to REM
p { font-size: 2em }
HTML (inline CSS):
<p style="font-size: 2em">Hello World<p>