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