Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 846 Bytes

min-height.md

File metadata and controls

27 lines (22 loc) · 846 Bytes

min-height

The min-height CSS property sets the minimum height of an element. It prevents the used value of the height property from becoming smaller than the value specified for min-height.

Values

<length>
Defines the max-width as an absolute value.
<percentage>
Defines the max-width as a percentage of the containing block's width.
max-content
The intrinsic preferred max-width.
min-content
The intrinsic minimum max-width.
fit-content(<length-percentage>)
Uses the fit-content formula with the available space replaced by the specified argument, i.e. min(max-content, max(min-content, argument)).

Examples

min-height="75%"
min-height="0"
min-height="20px"
min-height="100vh"