Layout and hierarchy
Arrange content by importance and keep every task usable as the viewport, text size, and reading direction change.
Platform note. CSS safe area values describe browser insets. They do not expose every native window guide, size class, or hardware feature.
What the guidance says
- Place important content early in the reading order and use alignment, spacing, and indentation to show relationships.
- Use progressive disclosure when showing every choice at once would make a view harder to scan.
- Base layout changes on available space rather than a device name or assumed orientation.
- Respect safe areas and keep functionality available as the viewport changes.
How to apply it on the web
- Use fluid grids, container queries, flexible wrapping, and content based breakpoints.
- Keep logical source order aligned with visual reading order.
- Let content containers grow when text wraps or the browser zoom changes.
- Apply safe area environment insets where controls sit near a viewport edge.
What to check
- Does the hierarchy remain clear at narrow, wide, short, and tall viewport sizes?
- Does content remain usable at 200 percent browser zoom?
- Can text grow without clipping, overlap, or hidden actions?
- Do leading and trailing relationships work in both interface directions?