CSS min-widthProperty
Property definition and usage instructions
The min-width property sets the minimum width of an element.
Note:The min-width property does not include padding, borders, or margins!
| Default value: | 0 |
|---|---|
| Inherited: | no |
| version: | CSS2 |
| JavaScript Syntax: | object.style.minWidth="10px" |
Browser Support
The numbers in the table indicate the first browser version that supports the property.
| Property | |||||
|---|---|---|---|---|---|
| min-width | 1.0 | 7.0 | 1.0 | 2.0.2 | 4.0 |
Property value
| Value | Description |
|---|---|
| length | Defines the minimum width value of an element. Default value: depends on the browser. |
| % | Defines a percentage minimum width based on the containing block-level object. |
| inherit | Specifies that the value of the min-width property should be inherited from the parent element. |
Related Articles
CSS Tutorial:CSS Dimension
CSS Reference Manual:max-width property
other extensions