CSS · Properties — CSS Box Sizing

min-height

The CSS min-height property. Initial value: auto. Not inherited.

Syntax
min-height: auto | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>

Example

Try it

Notes

Media: visual. Applies to: allElementsButNonReplacedAndTableColumns. Computed value: percentageAsSpecifiedOrAbsoluteLength.

More in this group

column-height column-width column-wrap contain-intrinsic-block-size contain-intrinsic-height contain-intrinsic-inline-size contain-intrinsic-size contain-intrinsic-width

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course