CSS min-width property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS min-width specifies the minimum width of an element.
It represents the minimum width of an element no matter whether the content is present or not.
Syntax
min-width : none | min-content | max-content | +ve length | +ve percentage | auto
Property values
min-content
-
min-content value specifies that the minimum width of element must be equal to or greater than the largest minimum width of some descendant item.
- Try it
min-width: min-content; max-content
-
max-content value represents that the minimum width of element must be equal to or greater than the largest maximum width of some descendant item.
- Try it
min-width: max-content; auto
-
auto value means the width will be changed automatically according to the content.
- Try it
min-width: auto;
Applicable to
It applies to all elements