CSS Property: height
The height of the content area of a box.
Any vertical padding
, border
, or margin
will be in addition to the value of height
.
Possible Values
Value | Note | Example |
---|---|---|
[length] | Should not be a negative value. | 600px |
[percentage] | Calculated in relation to the height of the containing box. Should not be a negative value. | 25% |
auto | Default. | |
inherit | ||
initial | ||
unset |
Example
figure {
padding: 20px;
height: 150px;
}