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