CSS Line-height Property

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

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.

Example

p {
  line-height: 1em;
}

Inherited? YES!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.