To specify min height of a view. It prevents the applied value of height
becoming larger than the specified value of min-height
.
The priority of min-height
is higher than height
but lower than max-height
.
<length>
<length>
defines the min-height as an absolute value. Default to 0px
.
<percentage>
Defines the min-height
as a percentage of the containing block's height.
Initial value | 0px |
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 |
max-height
is higher than height
and min-height
. While in Web, max-height
overrides height
, but min-height
overrides max-height
.min-height
is specified smaller than min-height
, min-height
will be ignored.auto
is not supported, default value is 0px
.max-content
, min-content
, fit-content
, min-content
are not supported.LCD tables only load in the browser