max-height
Definition
The max-height property specifies the maximum height of the element.
Example
div {max-height: 500px}
Characteristics
Possible values
- length
- Specific height.
- percentage
- Percentage of the parent element's height.
none- No height limit.
inherit- Use the same computed value as the parent element for this property.
Default value
none
Applies to
All elements except img, colgroup and col.
Inherited
No
See also