The height
CSS property specifies the height of an element. By default, the property defines the height of the border area. If box-sizing
is set to content-box
, however, it instead determines the height of the content area.
The min-height
and max-height
properties override height
.
auto
Default value. lynx will calculate and select a height for the specified element.
<length>
<length>
defines the height as a distance value.
<percentage>
Defines the height as a percentage of the containing block's height.
max-content
The intrinsic preferred height.
fit-content
fit-content
uses the computed size with the available space replaced by the specified argument.
Initial value | auto |
Applies to | all elements |
Inherited | no |
Animatable | yes |
Percentages | The percentage is calculated with respect to the height of the generated box's containing block |
content area
.min-content
is not supported.