(absolute length units are fixed in relation to each other)
(relative length units specify a length relative to another length property)
Use for: fixed-width designs; values for CSS shadow displacement. Avoid using when your design needs to adapt.
Don’t use for: typography.
Pixels (px)
Use for: making responsive images and containers.
Don’t use for: typography.
Percentage (%)
Use for: typography, and elements related to typography (margins, for example)
em, ex
Use for: print stylesheets.
Don’t use for: anything else.
Points (pt) and picas (pc), Inches (in) and Centimeters (cm)
Use for: a more robust and predictable alternative to em and ex, and employed for the same purposes, including @media query breakpoints.
Don’t use for: if you wish to support IE8 and earlier.
rem
Use for: responsive typography; responsive containers.
Viewport units (vh & vw)