Line Height

Set the line height of an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

1

The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?

<p class="p-4 c-slate fs-lg lh-1 ta-c">The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?</p>

2

The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?

<p class="p-4 c-slate fs-lg lh-2 ta-c">The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?</p>

3

The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?

<p class="p-4 c-slate fs-lg lh-3 ta-c">The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?</p>

4

The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?

<p class="p-4 c-slate fs-lg lh-4 ta-c">The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?</p>

5

The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?

<p class="p-4 c-slate fs-lg lh-5 ta-c">The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?</p>

6

The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?

<p class="p-4 c-slate fs-lg lh-6 ta-c">The pike eats the owl and then lazes in the sun under the water. Who would eat a big pike?</p>

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:lh-*
Small640px
md:lh-*
Medium768px
lg:lh-*
Large1024px
xxl:lh-*
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:lh-*

Negative Values

Use negative variants to translate in the opposite direction.

Use the -- syntax to apply negative numeric values.

Syntax:lh--*