HTML Dog
Skip to navigation

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

ValueNoteExample
[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%
autoDefault.
inherit
initial
unset

Example


figure {
    padding: 20px;
    height: 150px;
}

Browser support