liveBook · Manning

Typography

As explained in Math for Web Design

Typography is the design and arrangement of text, including its size, spacing, alignment, and visual appearance.

Typography arranges text through mathematical relationships among font size, line height, spacing, and width. A coherent type scale, often built with ratios such as 1.2 or 1.618, creates visual rhythm while supporting readability and accessibility. section 1.2.2 section 8.0

A readable text block balances three typographical properties:

  • font-size sets the scale of the text. section 8.1.5
  • line-height controls vertical separation between lines. section 8.1.5
  • max-width limits line length so paragraphs remain easier to scan. section 8.1.5
  • CSS calc() can scale these values together instead of treating them as unrelated fixed numbers. section 1.2.2

Scaling a text article

An article that inherits a 16px font, 1.2 line-height, and full body width can feel cramped and difficult to scan. Choosing a 20px font size and scaling the related values produces a 1.41 line-height and a 600px maximum width. The CSS expresses the relationship with custom properties and calc(), rather than isolated guesses. section 8.1.5

Figure 1.2 A type scale based on the golden ratio (approximately 1.618).

Visualizes a type scale based on the golden ratio, approximately 1.618. section 1.2.2

How Math for Web Design covers it

How deep it goes
Explains type ratios, scaling formulas, CSS calc(), and a worked article correction, while stopping short of broader typography history.
Examples
Uses golden-ratio type scales, an unreadable article, CSS custom properties, scaling formulas, and readability exercises.
What it assumes
Assumes basic web styling while teaching the relevant typography relationships, algebraic formulas, and CSS calculations.
What you can do after
Apply typography formulas through CSS to scale font size, line height, and line length for more readable articles.
How it connects
Connects typography with responsive layouts, CSS math functions, font size, line height, max-width, modular scales, and accessibility.

Also explained in

Compare how 4 books explain typography →

Related concepts

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