CSS padding-right Property

Padding is the space between its content and its border. The padding-right property in CSS is used to set the width of the padding area on the right of an element.

An element's padding is the space between its content and its border.The padding-right property sets the right padding (space) of an element.

Possible Values

  • length − Any length value. Negative length values are not permitted for this property.

  • percentage − The right padding's width is calculated with respect to the width of the element's containing block.

CSS Syntax

padding-right: length|initial|inherit;

Supported Browsers: The browser supported by property are listed below:

  • Chrome
  • Android
  • Firefox (Gecko)
  • Firefox Mobile (Gecko)
  • Internet Explorer (IE)
  • IE Phone
  • Opera
  • Opera Mobile
  • Safari (WebKit)
  • Safari Mobile

Example -