Table of contents
- 1. Summary
- 2. Syntax
- 3. Values
- 3.1. Mozilla Extensions
- 4. Examples
- 5. Notes
- 6. Specifications
- 7. Browser compatibility
- 8. See also
« CSS « CSS Reference
Summary
The min-width CSS property is used to set the minimum width of a given element. It prevents the used value of the width
property from becoming smaller than the value specified for min-width.
- Initial value : 0
- Applies to: block level and replaced elements, for
<table>see Browser compatibility below - Inherited : no
- Percentages: refer to the width of the containing block
- Media:
visual - Computed value : the percentage as specified or the absolute length
Syntax
min-width: <length> | <percentage> | -moz-max-content | -moz-min-content | -moz-fit-content | -moz-available
Values
- length
- See
<length>for possible units. - percentage
- Specified as a
<percentage>of containing block's width.
Mozilla Extensions
Examples
table { min-width: 75%; }
form { min-width: 0; }
Specifications
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | 1.0 | 1.0 (1.0) | 7.0 | 4.0 | 2.0.2 (416), buggy before |
applies to <table> | no | yes | no | yes | no |
| Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? |


Mozilla Developer Network