If the content is larger than the maximum height, it will overflow. How the container will handle the overflowing content is defined by the overflow property. If the content is smaller than the maximum height, the max-height property has no effect. . This prevents the value of the Height property from becoming larger than MaxHeight. The value of the MaxHeight property overrides the Height property.