max-height
CSS Property:
Result:
The max-height property is used to set the maximum height of an element. This property prevents the height property's value from becoming larger than the value specified for max-height.
Example of the max-height property:
CSS Code:
#myDiv {
background-color:pink;
max-height:none;
}
Click the property values above to see the result