CSS Units Reference
Browse every CSS unit — absolute (px, cm, pt), font-relative (em, rem, ch), viewport (vw, dvh), container-query, grid (fr), angle, time and resolution — in a searchable, type-filterable reference with a description, a "when to use" note and copy-ready tokens. In your browser, free.
Every CSS unit, explained. Everything runs in your browser from a built-in reference — nothing is sent to the server.
About CSS Units Reference
The CSS Units Reference documents every unit the language offers — 45 in all — organized by type: absolute units like px, cm and pt; font-relative units like em, rem, ch and lh; viewport units from vw and vh through the newer svh, lvh and dvh; container-query units like cqw and cqi; the grid fr unit; plus angle, time, resolution and percentage.
Each card gives you more than a definition: the unit token in copyable monospace, its full name, its category, a plain-language description of how it is computed, and a practical “when to use” note that says where the unit earns its place — and where a different one serves better.
Search matches tokens, names and meanings, so rem, viewport width and root all find their units, and type chips filter the grid down to one family. Everything runs in your browser from a built-in reference, with nothing sent to a server.
How to use CSS Units Reference
- Search for a unit by token, name or meaning — for example rem, viewport width or angle.
- Use the type chips to filter the grid to absolute, font-relative, viewport, container, grid, angle, time, resolution or percentage units.
- Read each unit’s description and its “when to use” note to pick the right one.
- Click the copy button to grab the unit token for your stylesheet.