Skip to content

    Line spacing

    Reading time: 2 min.Editorially reviewed on:

    Definition

    Line spacing determines the vertical distance between consecutive lines of text and affects their readability.

    Line spacing describes the vertical arrangement of text lines. In CSS, it is mainly controlled by line-height, the height of the line box. The appropriate value depends, among other things, on the font, font size, and line length and is distinct from the spacing between paragraphs.

    Simply explained

    There needs to be enough space between text lines so your eyes can easily find the next line without losing context.

    Why it matters in practice

    A suitable setting facilitates reading longer texts and must also work with zooming or changing screen width.

    Example from business

    Possible example: A website increases the line height for its long guide texts and then checks the interaction with font size and text width.

    Limits and pitfalls

    • Lines that are too tight make reading difficult; too large spacing can break the connection. Fixed heights can cause overlaps when text is enlarged.

    Origin & history

    The term originates from typography and typesetting. CSS transfers control of line rhythm to flexible digital text display.

    Use in mid-sized companies

    • Businesses can test body text styles with real longer paragraphs, considering narrow views and enlarged fonts.

    Frequently asked questions

    Is line-height just the empty space between lines?

    No. It describes the line box height; the visible space between lines also depends on font metrics.

    Sources

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice