8px to rem
8 pixels expressed in rem, the unit that scales when a user changes their browser's font size.
8px=0.5rem
8 ÷ 16 = 0.5 — rem is just pixels divided by the root font size, which defaults to 16px.
| root size | 8px in rem |
|---|---|
| 14px | 0.5714rem |
| 16px | 0.5rem |
| 18px | 0.4444rem |
| 20px | 0.4rem |
Different value? Use the converter.