Properties
CSS
min-width
The min-width property constrains the width of an element to a minimum range.
CSS2
min-width: <length> | <percentage> | inherit
| Initial: | 0 |
| Applies To: | all elements but non-replaced inline elements, table rows, and row groups |
| Inherited: | no |
| Percentages: | refer to width of containing block |
| Media: | visual |
Note: Doctype is required for Internet Explorer 8+
Values
min-width: value;
| Value: | Description: |
| inherit | Takes the same computed value as the property for the element's parent |
| length | Fixed minimum width |
| percentage | Width percentage calculated with respect to the width of the containing block |
DOM
[window.]document.getElementById("element-id").style.minWidth = "min-width";
