We use cookies to improve your experience. Learn more in our Privacy policy.
padding-top
The padding-top CSS property sets the height of the padding area on the top of an element.
Example
Initial value | 0 |
Applies to | all elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column. It also applies to ::first-letter and ::first-line. |
Syntax
padding-top: 20px;
Values
The size of the padding as a fixed value. Must be nonnegative.
The size of the padding as a percentage, relative to the width of the containing block. Must be nonnegative.
Browser support
padding-top | 1 | 12 | 1 | 4 | 3.5 | 1 |