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