Name
max-height
Synopsis
Specifies the maximum height of an element. Negative values are not permitted.
Values:
<length> | <percentage> | none | inherit
Initial value:
none
Applies to:
All elements except nonreplaced inline elements (i.e., inline text elements), table columns, and column groups.
Inherited:
No.
Percentages:
Refer to the height of the containing block; if the height of the containing block is not specified and the element is not absolutely positioned, the percentage value is treated as 0 (zero).
Computed value:
Percentage values or absolute length as specified; otherwise,
none
.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.