CSS Property:

max-height

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;
}
Click the property values above to see the result
W3Docs.com-Play it
Trouvez-vous cela utile?