Properties
CSS
height
The height property specifies the content height of boxes generated by block-level, inline-block, and replaced elements.
height: <length> | <percentage> | auto | inherit
| Initial: | auto |
| 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 |
Values
height: value;
| Value: | Description: |
| auto | Depends on the values of other properties |
| inherit | Takes the same computed value as the property for the element's parent |
| length | Height measurement: em | ex | px | in | cm | mm | pt | pc |
| percentage | Height percentage calculated with respect to the height of the containing block |
DOM
[window.]document.getElementById("element-id").style.height = "height";
