CSS length units

Absolute (more)

1cmcentimeters, 1cm = 96px/2.54
1mmmillimeters, 1mm = 1/10th of 1cm
1Qquarter-millimeters, 1Q = 1/40th of 1cm
1ininches, 1in = 2.54cm = 96px
1pcpicas, 1pc = 1/6th of 1in
1ptpoints, 1pt = 1/72nd of 1in
1pxpixels, 1px = 1/96th of 1in

Relative to font (more)

1emfont size of the element
1remfont size of the root element
1exx-height of the element’s font
1rexx-height of the root element
1capcap height (the nominal height of capital letters) of the element’s font
1rcapcap height (the nominal height of capital letters) of the root element
1chtypical character advance of a narrow glyph in the element’s font, as represented by the “0”
1rchtypical character advance of a narrow glyph in the root element, as represented by the “0”
1ictypical advance measure of CJK letters, and measured as the used advance measure of the “水” in the element’s font
1rictypical advance measure of CJK letters, and measured as the used advance measure of the “水” in the root element’s font
1lhline height of the element
1rlhline height of the root element

Percentage of viewport (more)

1vwEqual to the width of the UA-default viewport
1vhEqual to the height of the UA-default viewport
1viEqual to the size in the box’s inline axis of the UA-default viewport
1vbEqual to the size in the box’s block axis of the UA-default viewport
1vminEqual to the smaller value between ‘vw’ and ‘vh’
1vmaxEqual to the larger value between ‘vw’ and ‘vh’
1svwEqual to the width of the small viewport
1svhEqual to the height of the small viewport
1sviEqual to the size in the box’s inline axis of the small viewport
1svbEqual to the size in the box’s block axis of the small viewport
1svminEqual to the smaller value between ‘svw’ and ‘svh’
1svmaxEqual to the larger value between ‘svw’ and ‘svh’
1lvwEqual to the width of the large viewport
1lvhEqual to the height of the large viewport
1lviEqual to the size in the box’s inline axis of the large viewport
1lvbEqual to the size in the box’s block axis of the large viewport
1lvminEqual to the smaller value between ‘lvw’ and ‘lvh’
1lvmaxEqual to the larger value between ‘lvw’ and ‘lvh’
1dvwEqual to the width of the dynamic viewport
1dvhEqual to the height of the dynamic viewport
1dviEqual to the size in the box’s inline axis of the dynamic viewport
1dvbEqual to the size in the box’s block axis of the dynamic viewport
1dvminEqual to the smaller value between ‘dvw’ and ‘dvh’
1dvmaxEqual to the larger value between ‘dvw’ and ‘dvh’

Container query (more)

1cqw1% of a query container's width
1cqh1% of a query container's height
1cqi1% of a query container's inline size
1cqb1% of a query container's block size
1cqminThe smaller value of either cqi or cqb
1cqmaxThe larger value of either cqi or cqb