CSS line-height property

Description

CSS line-height adds additional space between the lines of text.

Syntax

line-height : normal | length | percentage

Property values

normalDefault

In this case, no additional space is added i.e. it computes to 0 additional space.

line-height: normal;

length

It adds 40px vertical additional spacing between lines of text.

line-height: 40px;

percentage

percentage value represents the percentage of default line-height.

line-height: 120%;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
It is the representing the space between lines.
×

Ctrl+D