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