height property sets the content height of a block. This height does not include padding, borders or margins.
If the contents of a block require more vertical space than is afforded by the height you assign, their behavior is defined by the overflow property.
5.5 |
6.0 |
7.0 |
8.0 |
9.0 |
10.0 |
|||||||
1.0 |
1.5 |
2.0 |
3.0 |
4.0 |
5.0 |
6.0 |
||||||
2.0 |
3.0 |
4.0 |
10. |
11.0 |
12.0 |
13.0 |
14.0 |
|||||
1.3 |
2.0 |
3.1 |
4.0 |
5.1 |
||||||||
5.5 |
6.0 |
7.0 |
8.0 |
9.0 |
||||||||
Values
height: { length | percentage | auto | inherit } ;
Example
#example p {
height: 200px;
}