The line-height property specifies the height of a text line.
The line height of text in the textarea can be specified by applying this property to the TEXTAREA element.
textarea {
width: 300px;
height: 7em;
line-height: 1.5em;
}
Property |
Value |
Explanation |
line-height |
number, length, %, or normal |
the height of a text line |
The default is "normal".
line-height: 1.5;
line-height: 1.5em;
line-height: 150%;
Example