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

Syntax
Values
<length>
<length> defines the max-width as an absolute value.
<percentage>
Defines the max-width as a percentage of the containing block's width.
Formal definition
| Initial value | no limit |
| Applies to | all elements |
| Inherited | no |
| Animatable | yes |
| Percentages | refer to the width of the containing block |
Formal syntax
Difference with the Web
- In Lynx, the priority of
max-widthis higher thanwidthandmin-width. While in Web,max-widthoverrideswidth, butmin-widthoverridesmax-width. - In Lynx, if
max-widthis specified smaller thanmin-width,min-widthwill be ignored. none,max-content,min-content,fit-content,min-contentare not supported.
Compatibility
LCD tables only load in the browser