HTML Dog
Skip to navigation

CSS Property: line-height

The minimal height for a line of text.

Possible Values

ValueNoteExample
[number]A multiplier of the computed font size. Should not be a negative value.1.2
[length]Should not be a negative value.1.2em
[percentage]Calculated in relation to the computed font size. Should not be a negative value.120%
normalA “reasonable” height, suitable to the font in use. Typically equivalent of 1.2.
inherit
initial
unset

Example


p { line-height: 1.5 }

Browser support