Name
max-width
Synopsis
Specifies the maximum width of an element. Negative values are not permitted.
Values:
<length> | <percentage> | none | inherit
Initial value:
none
Applies to:
All elements except nonreplaced elements (i.e., inline text elements), table rows, and row groups.
Inherited:
No.
Percentages:
Refer to width of the containing block.
Computed value:
Percentage values or absolute length as specified.
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.