max-height

From Mozilla:

The max-height CSS property is used to set the maximum height of an element. It prevents the used value of the height property from becoming larger than the value specified for max-height.