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