Specifying Vertical Space Within a Paragraph

The line height is the amount of space between each line, which is also referred to as leading. This setting can be used to make paragraphs easier to read. You are not limited to just single-spacing or double-spacing like on a typewriter; you can specify any amount of space.

There are two ways of expressing the line height: as a number or as a percentage. If you use a number, it’s a fixed measurement (usually in pixels). If you later increase or decrease the font size, the line height will not change. If you use a percentage, the number is multiplied by the font size to derive a spacing amount. For example, you can specify 200 percent to make a paragraph double-spaced. If you later change the font size, ...

Get HTML and XHTML Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.