HTML and CSS Reference
In-Depth Information
Name
max-height
Values:
<length> | <percentage> | none
Initial value:
none
Applies to:
All elements except inline nonreplaced elements and table elements
Inherited:
No
Percentages:
Refer to the height of the containing block
Computed value:
For percentages, as declared; for length values, the absolute length; otherwise, none
Description:
Defines a maximum constraint on the height of the element (the exact nature of that height is
dependent on the value of box-sizing ). Thus, the element can be shorter than the declared
value but not taller. Negative values are not permitted.
Example:
div#footer {max-height: 3em;}
Search WWH ::




Custom Search