Most common use is to define the distance between lines of text. Negative values are not allowed.
Example
Paragraph with a small line height
Paragraph with a big line height
p.small {
line-height: 70%;
}
p.big {
line-height: 200%;
}
Values
Value | Description |
---|---|
normal | default value, sets a normal line height |
number | sets a number that is multiplied with the current font size |
length | sets the line height in px, em, pt,cm... |
% | sets the line height in percentage of the current font |
initial | sets this property to its default value |
inherit | used to inherit the value from the parent element |