height Description:
The height property defines the height of the element.
height in CSS Versions:
height Syntax:
height: <length> | <percentage> | auto | inherit
- length
A specific length (include unit of measure). - percentage
A percentage of the height of the parent element. - auto
Allows the user-agent to define the height based on inheritance and pre-set user-agent rules. - inherit
The element should have the same height setting as the parent.
height Initial Value:
auto
height Applies To:
All block-level and replaced elements.
height Inheritance:
This property is not inherited.
height Browser Support:
height Examples:
Standard height property
<p style="height : 500px;">
This paragraph is 500px tall.
</p>
height Special Notes:
- Negative values are not allowed.
- When used for replaced elements, the height will be enforced by scaling the element.
More height Information:

