Units Deep Dive

CSS Units CSS has several different units for expressing a length. Many CSS properties take “length” values, such as width, margin, padding, font-size, etc. Length is a number followed by a length unit, such as 10px, 2em, etc. Example

Result Absolute Lengths The absolute length units are fixed and a length expressed in any of these will appear as exactly that size. […]