CSS max width Property
CSS max-width Property
The max-width property is used to specify the maximum width of an element. If the content is larger than the maximum width, it will overflow. However, it can be managed by overflow property. If the content is smaller than the maximum width, the max-width property has no effect.
Its default value is none.
Its syntax is:- max-width: none | length | initial | inherit;
|No maximum width.
|Defines the maximum width in px, etc.
|Defines the maximum width in percent of the containing block
|Sets this property to its default value.
|Inherits this property from its parent element.