CSS Line-Height Property
CSS 1 |
CSS 2 |
CSS 3 |
|
|
|
|
Description
Specifies the height of an inline element.
Syntax
line-height: [value];
Possible values
- normal
- [length]
- [number]
- [percentage]
- inherit
Initial Value
Normal
Applies To
All elements
Inherited
Yes
Media
Visual
Example
div.main {line-height: 1.2;
font-size: 10pt;}
div.main {line-height: 120%; font-size:
10pt;}