When edges line up, a screen looks intentional. Stray edges look careless.
Aligned elements feel intentional and reduce cognitive load. Stray edges feel sloppy.
By Rohit Sonawane, product designer · Last reviewed 16 November 2026
The alignment principle says that elements on a screen should line up along shared edges or centres. Aligned items look connected and intentional, while stray edges look careless and make a layout harder to scan.
Four elements on a profile card each start at a slightly different distance from the edge. Select one and nudge it until the card looks right, with no guides to help.
Use flex/grid with consistent gaps; pin CTAs to card bottom with margin-top:auto.
Line up every label's left edge, every value's right edge, and every card's baseline, and a form looks considered before anyone reads a word. Let a few fields drift a couple of pixels and the same form feels amateur, even if users can't say why. This is why design tools ship alignment guides and why a strict column grid makes a page feel calm: the eye reads shared edges as order. Apple's and Stripe's marketing pages are ruthless about it.
Strict alignment serves scanning, but expressive layouts (an editorial hero, a poster, a landing splash) sometimes break the grid on purpose to create tension and pull the eye. The rule is a default for functional, content-dense screens, not a ban on deliberate asymmetry where the goal is feeling rather than fast reading.
If you draw lines along the left edges and baselines, most elements sit on a few shared lines, with nothing a few pixels off.
Alignment gives the eye clear lines to follow, so people find information faster. It also signals which items belong together, the way a grid in a newspaper does.
For text in left-to-right languages, left alignment is easiest to read. Centre alignment works for short, single items like a headline or an empty-state message, but long centred text is hard to scan.
Use a grid or flexbox with equal-height cards, and push buttons to the bottom of each card so they line up in a row, no matter how long the text above them is.
A 3-column card grid has titles, prices, and buttons all landing at different heights, so the whole row looks broken even though each card is 'correct' on its own.