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