Skip to Content


CSS Reference / padding-top

padding-top

Sets the top padding of an element. Negative values are not allowed.

Values:

  • length
  • %

Examples:

  1. padding-top: 1px;
  2. padding-top: 50%;

Browser support:

  • Internet Explorer 4+
  • Netscape 4+
  • Opera 3.5+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here