Alignment
Placing elements along shared lines or edges to create order and connection.
See it on the 3D treeGoing deeper
Elements can align by edges (left, right, top or bottom), by centres or by text baselines. Each shared line implies a relationship even when no line is drawn. Left alignment suits most long text in left-to-right languages, while centring works better for short, isolated pieces.
Why it matters
Consistent alignment reduces visual noise and lets people scan a layout in predictable paths.
In practice
In a settings form, you give labels, fields and help text one left edge, and the page immediately looks calmer.
Common mistake
Mixing centred and left-aligned blocks on one screen with no reason, creating many competing edges.
Connected terms
- JustificationJustified setting aligns text to both edges.
- MonospaceEqual widths make characters line up vertically without extra work.
- RagAligning one side of text leaves a rag on the other.
- FlexboxFlexbox gives CSS direct controls for aligning items in a row or column.
- Gestalt PrinciplesAligned items tend to be perceived as related.
- GridA grid supplies the shared lines that elements align to.
- Optical AlignmentSome shapes must be nudged so they look aligned.