max-width
Definition
The max-width property specifies the maximum width of the element.
Example
div {max-width: 500px}
Characteristics
Possible values
- length
- Specific width.
- percentage
- Percentage of the parent element's width.
none- No width limit.
inherit- Use the same computed value as the parent element for this property.
Default value
none
Applies to
All elements except img, tbody, thead and tfoot.
Inherited
No
See also