back

Max-Height

Max-height is used the set the maximum height of an element.
The elements height will not become bigger than max-height.

It will override the height attribute.
You can also use min-height.

The options are:
(1) None, there is no maximum height
(2) Length, allows you to set it as a value like px or cm
(3) Percentage, allows you to set the max-height as a percentage of its containing element.
(4) Inherit, it is inherited from its parent element.

Example