CSS max-width Property

The css max-width property sets the maximum width for an element. It limits the width property to be larger than the value specified in max-width.

Syntax for max-width property

length | percentage | none | inherit