The maxHeight property sets or returns the maximum height of an element.
The maxHeight property has effect only on block-level elements or on elements with absolute or fixed position.
Note: The height of an element can never be greater than the value specified by the maxHeight property.
Set the maxHeight property:
Return the maxHeight property:
|none||No limit on the height of the element. This is default|
|length||Defines the maximum height in length units|
|%||Defines the maximum height in % of the parent element|
|inherit||The value of the maxHeight property is inherited from parent element|
The maxHeight property is supported in all major browsers.
Note: The value "inherit" is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports "inherit".
Set the maximum height of an element:
Your message has been sent to W3Schools.