Skip to main content

What absolute units of measurement exist in CSS?

Absolute units in CSS are units of measurement that do not depend on the screen, scale, or browser font settings. They always have a fixed physical size.

Main absolute units:

UnitMeaningSize
pxpixelthe smallest point on the screen (conceptual, but fixed for CSS)
cmcentimeter1 cm
mmmillimeter1 mm
ininch1in = 2.54 cm
ptpoint1pt = 1/72 inch
pcpica1pc = 12pt

Key point

Although there are formally many absolute units, in real-world layout almost only px is used. The rest (cm, mm, in, pt, pc) are better suited to print or PDF, not interfaces.


In short: absolute units give a fixed size, but are mainly suitable where responsiveness does not matter. On the web they are used sparingly, with relative units (em, rem, %, vw, vh) usually preferred instead.

Short Answer

Interview ready
Premium

A concise answer to help you respond confidently on this topic during an interview.