liveBook · Manning

Center alignment

As explained in Design for Developers

Horizontal alignment is an alignment mode in which elements share the center line of their horizontal axes.

Center alignment places elements along a central axis. Horizontal center alignment shares the center line of each element’s horizontal axis, while vertical center alignment shares the center of the vertical axis. This invisible line creates relationships, structure, and readability. section 2.1.2

Use center alignment deliberately:

  • Align related elements to the same central axis so the page feels organized rather than random. section 2.1.2
  • Check the whole component, including text alignment, because mixing alignment values can make it feel less cohesive. section 2.1.2
  • Do not assume that shared center points guarantee order; poorly arranged center-aligned content can still feel disjointed. section 2.1.2

A hotel listing

Center-aligning hotel names may align them to the same point while making the page feel disjointed. Aligning the content to the left and placing each hotel name below its image creates a more orderly rectangular structure. section 2.1.2

How Design for Developers covers it

How deep it goes
Defines horizontal and vertical center alignment, then illustrates cohesion problems without detailing implementation syntax.
Examples
Uses center axes, mixed text alignment, and a hotel-listing comparison to demonstrate aligned and disjointed layouts.
What you can do after
Apply center alignment by selecting a shared axis and checking whether the resulting component remains cohesive and orderly.
How it connects
Connects center alignment with edge alignment, text alignment, readability, and component cohesion.

Related concepts

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