0.5em in px · 16px root
8 px
px = em × parent font size — shown here at the browser default root font size of 16px.
0.5em at every root font size
| Root font size | 0.5em equals | CSS |
|---|---|---|
| 10px | 5px | font-size: 5px; |
| 12px | 6px | font-size: 6px; |
| 14px | 7px | font-size: 7px; |
| 16px default | 8px | font-size: 8px; |
| 18px | 9px | font-size: 9px; |
| 20px | 10px | font-size: 10px; |
Converter
—
Nearby values
Questions
What is 0.5em in px?
0.5em = 8px at the browser default root font size of 16px. px = em × parent font size.
What is 0.5em in px at a different root size?
At 10px root: 5px. At 12px root: 6px. At 14px root: 7px. At 16px root: 8px. At 18px root: 9px. At 20px root: 10px.
How is 0.5em calculated?
px = em × parent font size. Here: 0.5 × 16 = 8.
All em values
Computed from the CSS Values and Units specification. See the full em to px table.