Establish a default spacing between lines across your entire website

Use different units for line height to make it scale automatically with — or be independent of — font size.

To define the default spacing between lines for your entire website, you will have to specify the spacing on the Body (All Pages) element. This styling will propagate to all the text on the website, except when there are more specialized styles applied to a particular element.

Specifying spacing between lines for an individual text element

Adjusting the spacing between lines for a text element will solely impact its textual content. This adjustment will take precedence over the styles inherited from the element’s tag or the Body (All Pages) element.

References
  • Introduction to typography
  • Input values and measurement units
Ewan Mak
Latest posts by Ewan Mak (see all)