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