CSS Padding-right Property

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

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

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

Possible Values

Note: Negative values is not allowed for Padding.

Example:

This Example sets the right-padding of paragraphs to 2em, meaning it will have a space from its right-edge of 2em, to its content.

p {
  padding-right: 2em;
}

Inherited? NO!

Comments: [0]

© Brugbart Webdesign