CSS max-height property

CSS max-height

CSS max-height property is used to set the elements maximum height.

It is used to prevent the height value getting bigger than the specified value, but min-height may overrides the max-height.

Example

Try Yourself