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