Skip to main content

CSS min-width

It is used to set the minimum width of the element's content box. It means that the width of the content box can be greater than the min-width value, but cannot be shorter.

It sets the lower bound on the element's width.

This property ensures that the value of the CSS width property cannot be less than the value of min-width property. It doesn't allow negative values.


min-width: none | length | initial | inherit;

The values of this CSS property are defined as follows:

  • none: It is the default value that does not limit the width of the content box.
  • length: This value defines the length of min-width in px, cm, pt, etc.
  • initial: It sets the property to its default value.
  • inherit: It inherits the property from its parent element.

Table of Contents