Absolute unit
An absolute CSS length unit has a fixed reference magnitude or defined relationship to physical or CSS reference lengths rather than depending on surrounding layout.
Web Design Playground, Second Edition
An absolute CSS unit represents a fixed physical or reference dimension that does not scale with inherited or user-adjusted text size.
- How it is used
- Uses fixed measurements for CSS properties such as font sizes, borders, margins, and dimensions.
- How deep it goes
- Defines px and pt, explains user-preference and responsive-layout consequences, and stops short of detailed unit mechanics.
- Examples
- Demonstrates px and rem through a header whose fixed height clips enlarged text.
- What you can do after
- Evaluate fixed dimensions and replace them with responsive measurements when user text settings or screen sizes may vary.
Read how Web Design Playground, Second Edition explains absolute unit →
Architecting Accessibility
A fixed unit is a CSS measurement unit whose value does not scale relative to another typographic or layout value.
- How it is used
- Uses fixed units as examples of typography and spacing choices that can limit adaptability.
- How deep it goes
- Defines fixed units and contrasts them with relative units, noting that browsers can still enlarge pixel text through page zoom.
- Examples
- Shows 13px body text and pixel-sized body and heading declarations.
- What you can do after
- Evaluate fixed-pixel typography against relative units for support of resizing and user font preferences.
Read how Architecting Accessibility explains absolute unit →
Also covered in
What to know first
- pixelA pixel is either a discrete image sample carrying visual information at a raster location or, in CSS, an abstract reference unit for rendered dimensions.
Related concepts
- pixelincludes · A pixel is either a discrete image sample carrying visual information at a raster location or, in CSS, an abstract reference unit for rendered dimensions.
- relative valuecontrasts with · A relative value expresses a quantity in relation to a contextual reference quantity rather than as an absolute value.
- remcontrasts with · The rem is a CSS relative length unit whose value equals the computed font size of the document’s root element.
- relative unitalternative to · A relative unit is a CSS length unit whose value is determined in relation to a contextual reference, such as a font size, parent dimension, container, or viewport.
- proportional layoutcontrasts with · A proportional layout assigns element dimensions or positions according to relative shares of available space.
Questions about absolute unit
What is absolute unit?
An absolute CSS length unit has a fixed reference magnitude or defined relationship to physical or CSS reference lengths rather than depending on surrounding layout.
Which Manning books explain absolute unit?
Web Design Playground, Second Edition and Architecting Accessibility.
What should I know before learning absolute unit?
Manning books that teach absolute unit usually introduce pixel first.
What is the difference between absolute unit and relative value?
An absolute CSS length unit has a fixed reference magnitude or defined relationship to physical or CSS reference lengths rather than depending on surrounding layout. A relative value expresses a quantity in relation to a contextual reference quantity rather than as an absolute value.
What kinds of absolute unit are there?
Kinds of absolute unit include pixel and pica.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

