On this page
  1. line-height
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

line-height

Prev: `font-size` | Up: typography | Next: `text-wrap`
Rel: typography, Typography & Color Guide
Ref: MDN Web Docs — line-height
Tags: #public #web #css #properties #typography #tier/core


Syntax & Overview

line-height: 1.5;

Sets line box height; always use unitless numbers so children inherit the ratio.

Notes & Best Practices

Example

body { line-height: 1.6; }
h1, h2, h3 { line-height: 1.2; }

Linked from

Related notes