CSS Max-width Property

The max-width Property of CSS is used to define a maximum width for elements.

Note. Its recommended to give your percentage based layouts a max-width, and min-width.

You can use our StyleSheet Selector to allow your users to control the max-width.

Possible Values

Read: Units of Measurement, to understand the many possible values.

Example:

#Basement {
  width: 90%;
  max-width: 1600px;
  min-width: 728px;
}

Inherited? - NO!