liveBook · Manning

Text alignment

As explained in Design for Developers

The positioning of text within a block or relative to an alignment edge or axis.

Text alignment positions words within a block or along an alignment edge or axis. Left, right, centered, and justified text can organize a page, improve readability, and shape how cohesive a component feels. section 2.1.2

Use alignment to make relationships and structure visible:

  • Align related content consistently so headlines, text, buttons, and other components share an invisible line. section 2.1.2
  • Treat centered text deliberately; mixing it with left-aligned content can make a component feel disjointed. section 2.1.2
  • Alternate alignment between sections only when the change helps differentiate content and direct attention. section 2.1.2

A more orderly card layout

Hotel cards with centered names can feel out of alignment even when their top edges match. Left-aligning the content and placing each name below its image makes every card read as an orderly rectangle. section 2.1.2

Figure 2.17 The different types of text alignment you can apply in design

Compare the main text-alignment options used in interface design. section 2.1.2

How Design for Developers covers it

How deep it goes
Explains alignment edges, axes, text options, and consistency problems through interface examples, without implementation detail.
Examples
Uses centered text, left-aligned components, alternating sections, and hotel cards to show cohesive and disjointed layouts.
What you can do after
Evaluate alignment choices and create more orderly, readable, and cohesive web components.
How it connects
Connects text alignment with CSS, CSS Grid, Flexbox, layout, readability, and component cohesion.

Also explained in

Compare how 2 books explain text alignment →

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.