CSS Padding-right Property

The padding-right property of CSS is used to apply right-padding to elements.

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!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.