CSS · Properties — CSS Box Sizing
max-height
The CSS max-height property. Initial value: none. Not inherited.
Syntax
max-height: none | <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: percentageAsSpecifiedAbsoluteLengthOrNone.
More in this group
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.