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
- auto (Default)
- Units of Measurement
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!