CSS Padding-top Property

Posted The: 25/04/2008 At: 18:24

Last Edited: 15/08/2008 At: 18:49

The padding-top property of CSS is used to set the top-padding of a given element. All elements can have padding.

Possible Values

Note: Negative values is not allowed for padding.

Example:

This example sets the top-padding to 1em for paragraphs, meaning that paragraphs will have a space of 1em from its top-edge to its content.

p {
  padding-top: 1em;
}

Inherited? NO!

Comments: [0]

© Brugbart Webdesign