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