Lessons Community Resources Tools

Top Padding

Syntax: padding-top: <value>
Possible Values: <length> | <percentage>
Initial Value: 0
Applies to: All elements
Inherited: No

The padding-top property describes how much space to put between the top border and the content of the selector. The value is either a length or a percentage. Percentage values refer to the parent element's width. Negative values are not permitted.