padding-top Description:
The padding-top property defines the top padding of the element.
padding-top in CSS Versions:
padding-top Syntax:
padding-top: <length> | <percentage>
- length
A specific length (include unit of measure). - percentage
A percentage of the height of the closest block-level ancestor.
padding-top Initial Value:
0
padding-top Applies To:
All elements.
padding-top Inheritance:
This property is not inherited.
padding-top Browser Support:
padding-top Examples:
standard padding-top
<p style="padding-top : 2em;">
This paragraph has a 2 em top padding.
</p>
padding-top Special Notes:
- Negative values are not permitted.
- The padding will inherit the background properties of the element.

