CSS | padding-top Property
Padding is the space between its content and border. The padding-top property in CSS is used to set the width of the padding area on the top of an element.
- length: This mode is used to specify the size of padding as a fixed value. The size can be set in form of px, cm etc. The default value is 0. It must be non-negative.
- percentage: This mode is used to set the top padding in percentage of the width of the element. It must be non-negative.
padding-top: percentage (%)
- initial: It is used to set padding-top property to its default value.
- inherit: It is used to inherit padding-top property from its parent element.
Supported Browsers: The browser supported by padding-top property are listed below:
- Google Chrome 1.0
- Edge 12.0
- Internet Explorer 4.0
- Firefox 1.0
- Safari 1.0
- Opera 3.5