18px in em · 16px root
1.125 em
em = px ÷ parent font size — shown here at the browser default root font size of 16px.
18px at every root font size
| Root font size | 18px equals | CSS |
|---|---|---|
| 10px | 1.8em | font-size: 1.8em; |
| 12px | 1.5em | font-size: 1.5em; |
| 14px | 1.28571em | font-size: 1.2857em; |
| 16px default | 1.125em | font-size: 1.125em; |
| 18px | 1em | font-size: 1em; |
| 20px | 0.9em | font-size: 0.9em; |
Converter
—
Nearby values
Questions
What is 18px in em?
18px = 1.125em at the browser default root font size of 16px. em = px ÷ parent font size.
What is 18px in em at a different root size?
At 10px root: 1.8em. At 12px root: 1.5em. At 14px root: 1.2857em. At 16px root: 1.125em. At 18px root: 1em. At 20px root: 0.9em.
How is 18px calculated?
em = px ÷ parent font size. Here: 18 ÷ 16 = 1.125.
All px values
Computed from the CSS Values and Units specification. See the full px to em table.