liveBook · Manning

Line height

Also called leading, line spacing

Line height is the vertical space allocated to a line of text, including the space between successive lines.

How 9 Manning books explain it

CSS in Depth, Second Edition

The line-height property specifies the height of a line box or the distance between lines of text.

How it is used
Controls readable text spacing and helps reconcile visible gaps with measured page spacing.
How deep it goes
Explains unitless inheritance with calculations, then works through content-box spacing and padded inline elements.
Examples
Compares inherited unitless and em values, calculates a tile’s visible gap, and styles wrapping inline tags.
What you can do after
Operate/configure it to avoid inherited text overlap and prevent padded inline tags from colliding when they wrap.

Read how CSS in Depth, Second Edition explains line height →

Math for Web Design

The CSS line-height property specifies the height of a line box or the spacing allocated to each line of text.

How it is used
Uses line-height to improve paragraph readability in concert with font-size and line length.
How deep it goes
Works through inheritance calculations and formulas that scale line-height with font size or width, then applies the values in CSS.
Examples
Compares percentage and unitless inheritance, tabulates scaled values, and repairs a cramped article.
What you can do after
Apply it via CSS line-height and custom properties to calculate spacing and coordinate it with font size and maximum width.

Read how Math for Web Design explains line height →

Design for Developers

Line height is the vertical distance allocated to each line of text, including the space between successive lines.

How it is used
Establishes readable text spacing and a consistent vertical rhythm across page elements.
How deep it goes
Works through line-height calculations and baseline adjustments, while leaving the ideal value to visual judgment.
Examples
Calculates 16px text at 1.5 as 24px, then adjusts 20px body line height with margin to align to a 12px baseline.
What you can do after
Configure line height and surrounding margins to balance readability with a consistent baseline rhythm.

Read how Design for Developers explains line height →

WordPress Power Toolkit: Harness AI to build next-level websites

Line height is the vertical spacing between successive lines of text, typically expressed as a multiple of the font size.

How it is used
Improves website text readability by controlling the space between lines alongside font size and typeface.
How deep it goes
Defines line height as a font-size multiple and gives visual guidance, without working through CSS syntax for it.
Examples
Uses cramped or disconnected lines as visual checks and a pet-adoption website as a setting for AI typography feedback.
What you can do after
Operate/configure it in WordPress typography settings, then inspect the text for comfortable spacing.

Read how WordPress Power Toolkit: Harness AI to build next-level websites explains line height →

Web Design Playground, Second Edition

The CSS line-height property specifies the height of each line box used to lay out text.

How it is used
Sets spacing between text lines to support readable typography.
How deep it goes
Defines the line box and value types, then illustrates tight, normal, and loose spacing without exploring browser internals.
Examples
Compares values of 0.75, 1.5, and 2.25, and tightens a wrapped page title with 0.8 or 0.9.
What you can do after
Apply it via CSS to adjust paragraph spacing or tighten a wrapped page title.

Read how Web Design Playground, Second Edition explains line height →

Everyday Data Visualization

Line spacing is the vertical distance between successive lines of text.

How it is used
Supports readable, accessible typography in visualizations.
How deep it goes
Connects spacing recommendations to readability and WCAG, without detailing implementation.
What you can do after
Apply loose line spacing and check that user-adjusted spacing preserves content and functionality.

Read how Everyday Data Visualization explains line height →

Build a Website with ChatGPT

The CSS line-height property specifies the height of a line box and the spacing of text lines.

How it is used
Customizes page text by adding space between lines for more breathing room.
How deep it goes
Shows a value and where to place it, but does not explain how line-height values are calculated.
Examples
Uses `line-height: 1.5;` in a body rule with background, font, and color declarations.
What you can do after
Apply it via a CSS `body` rule to increase the space between text lines.

Read how Build a Website with ChatGPT explains line height →

Tiny CSS Projects

Line height, also called leading, is the vertical distance allocated to each line of text.

How it is used
Sets vertical spacing between text lines to support legibility and tune paragraphs and display text.
How deep it goes
Defines leading, compares unitless and unit-bearing values, and gives legibility guidance with a font-specific exception.
Examples
Uses 1.5 for paragraphs and 1 for a display-font quote.
What you can do after
Apply via CSS unitless line-height values to adjust text spacing and make a font-specific exception.

Read how Tiny CSS Projects explains line height →

Architecting Accessibility

Line height is the vertical distance allocated to each line of text.

How it is used
Preserves readable text when users customize spacing through system settings, browser extensions, or custom styles.
How deep it goes
Connects increased line height to layout resilience, but does not explain the property's CSS mechanics.
Examples
Uses a 1.5-times-root-font-size line height and a “Read more” link hidden by fixed-height overflow.
What you can do after
Evaluate whether layouts retain content and functionality after users increase text spacing.

Read how Architecting Accessibility explains line height →

Also covered in

What to know first

Related concepts

Questions about line height

What is line height?

Line height is the vertical space allocated to a line of text, including the space between successive lines.

Which Manning books explain line height?

CSS in Depth, Second Edition, Math for Web Design, Design for Developers, WordPress Power Toolkit: Harness AI to build next-level websites, Web Design Playground, Second Edition, Everyday Data Visualization, Build a Website with ChatGPT, Tiny CSS Projects and 1 more.

What should I know before learning line height?

Manning books that teach line height usually introduce CSS, paragraph element, font and HTML first.

What is line height part of?

Line height is part of typography. Typography is the design and arrangement of written text, including typeface, size, spacing, alignment, and layout, to support readability and visual communication.

What is line height also called?

Line height is also called leading or line spacing.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.