Quick Answer
Leading is the vertical spacing of lines of type. On a website, CSS line-height controls line-box height. Review it using the real font, text and column width, and check that visitors can adjust text spacing without losing content or functionality.
The same line-height value can feel different in a short heading and a long paragraph. Start with the text’s job and its actual layout rather than copying a ratio from an unrelated specimen.
Separate line height from paragraph spacing
MDN’s line-height reference explains that the property sets line-box height in horizontal writing. It is not simply a fixed empty gap between the visible edges of letters.
Paragraph margins add space between blocks. Increasing a paragraph’s margin does not fix crowded lines inside it, and increasing line height can create an unnecessarily tall heading without solving the spacing between sections.
Compare realistic text while holding other choices steady
Use a real paragraph, a multiline heading and a short interface label. Keep font family, size, weight and width consistent while changing the line-height candidate.
| Sample | Question to answer |
|---|---|
| Paragraph | Can a reader follow the line sequence without crowding or losing the next line? |
| Wrapped heading | Are the lines distinguishable while still reading as one heading? |
| Label or button | Does the complete text remain visible when it wraps or grows? |
| Accented and mixed-case text | Are all required letterforms present without clipping or overlap? |
Change the width as a separate comparison. A narrow paragraph wraps differently, so a satisfactory wide-screen specimen does not establish the final mobile reading experience.
Understand the value you are setting
A unitless line-height multiplies the element’s own font size. MDN recommends it in most cases to avoid inheritance surprises associated with length or percentage values.
.article-copy { line-height: 1.6; }
This is an illustrative starting value for a scoped comparison, not CSS applied to your site or a universal prescription. Check the loaded font and the result in context. A heading inheriting a calculated length can behave differently from one inheriting a unitless multiplier.
Review user-adjusted spacing separately
W3C’s Text Spacing explanation concerns whether markup-based content adapts when users change spacing. Its Level AA criterion tests line height, paragraph spacing, letter spacing and word spacing together without loss of content or functionality.
The specified line-height test value is at least 1.5 times the font size. That does not require every authored heading or paragraph to use 1.5 as its default. Inspect all four required adjustments, including their effects on fixed-height boxes, controls and adjacent content.
A comfortable default and a successful override check are separate findings. Neither one, by itself, establishes that the whole website meets every accessibility requirement.
Record the approved context
Keep the selected font, size, line-height value, content sample and relevant widths in the design record. If the wording or font changes, review the affected composition again.
Our kerning guide concerns letter pairs, while the font-size guide addresses size choices. A website audit can examine clipping and spacing in the rendered pages.
Key Takeaways
- Separate line boxes from paragraph margins.
- Compare actual text in the intended layout.
- Understand unitless values and inheritance.
- Check user spacing overrides beyond the default design.
Frequently Asked Questions
Is one line-height ratio correct for every text style?
No. Review the font, text purpose, size and layout, then verify that required user adjustments remain usable.
Does setting line-height to 1.5 finish the text-spacing check?
No. The criterion also involves paragraph, letter and word spacing and requires that the combined adjustments preserve content and functionality.

