Open In App

What is the purpose of the ‘line-height’ property in CSS ?

The line-height property in CSS is used to control the height of a line of text within an element. It defines the amount of space above and below inline elements, such as text, to determine the overall height of a line.

Syntax

p {
line-height: 1.5;
}

The primary purposes of the line-height property include:

Article Tags :