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.

An element's padding is the space between its content and its border.The padding-top property sets the top padding (space) of an element.

Note: Negative values are not allowed.

CSS Syntax

padding-top: length|initial|inherit;

Supported Browsers: The browser supported by property are listed below:

  • Chrome
  • Android
  • Firefox (Gecko)
  • Firefox Mobile (Gecko)
  • Internet Explorer (IE)
  • IE Phone
  • Opera
  • Opera Mobile
  • Safari (WebKit)
  • Safari Mobile

Example -