By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

CSS Line-height Property

Reference on how to use the line-height property of CSS.

Edited: 2015-02-21 15:16

line-height sets the line-height of text.

The attached example sets the line-height of a paragraph to 1em. It is also possible to set the line-height globally, usually done on the body element.

Possible Values

Read Units of Measurement to understand the values.


p {
  line-height: 1em;

Inherited? YES!