max-height
Introduction
To specify max height of a view. It prevents the applied value of height becoming larger than the specified value of max-height.
The priority of max-height is higher than height and min-height.
Examples

Syntax
Values
<length>
<length> Defines the max-height as an absolute value.
<percentage>
Defines the max-height as a percentage of the containing block's height.
Formal definition
| Initial value | no limit |
| Applies to | all elements |
| Inherited | no |
| Animatable | |
| Percentages | The percentage is calculated with respect to the height of the generated box's containing block |
Formal syntax
Difference with the Web
- In Lynx, the priority of
max-heightis higher thanheightandmin-height. While in Web,max-heightoverridesheight, butmin-heightoverridesmax-height. - In Lynx, if
max-heightis specified smaller thanmin-height,min-heightwill be ignored. none,max-content,min-content,fit-content,min-contentare not supported.
Compatibility
LCD tables only load in the browser