liveBook · Manning

Absolute unit

As explained in Architecting Accessibility

A fixed unit is a CSS measurement unit whose value does not scale relative to another typographic or layout value.

An absolute unit, such as CSS px, sets a fixed value instead of scaling relative to another typographic value. Fixed-pixel text may be less adaptable to user font-size preferences; relative units such as rem tend to better support resizing and zoom. section 4.4.1

Fixed font sizes

A body size of 13px is flagged as too small and unable to support font resizing. Pixel sizes can still enlarge through page zoom, but may interfere with text scaling or user preferences. section 4.3 section 4.4.1

body { font-size: 16px; } #A
h1 { font-size: 24px; } #B

This CSS example uses fixed pixel sizes for body text and a heading. section 4.4.1

How Architecting Accessibility covers it

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.
How it connects
Connects fixed units with relative units, user font-size preferences, text resizing, and zoom behavior.

Also explained in

Compare how 2 books explain absolute unit →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.