Units of Measurement

Relative Units

Unit Abbr Length To Change
Width of capital M em
M
Change font size.
Height of lowercase x ex
x
Change font size.
Width of the number 0 ch
0
Change font size.
Root em rem
n/a
1/100th of Width of Viewport vw
Change width of browser window.
1/100th of Height of Viewport vh
Change height of browser window.
1/100th of Viewport's Smaller Dimension vmin
Change height or width of browser window.
1/100th of Viewport's Larger Dimension vmax
Change height or width of browser window.

Absolute Units

Unit Abbr Length
Pixels px
Quarter millimeters q
Millimeters mm
Centimeters cm
Picas pc
Points pt
Inches in

Percentage