padding-right

The padding-right CSS property sets the width of the padding area on the right of an element.

Example

Initial value 0
Applies to all elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column. It also applies to ::first-letter and ::first-line.

Syntax

  
padding-right: 20px;
  

Values

The size of the padding as a fixed value. Must be nonnegative.
The size of the padding as a percentage, relative to the width of the containing block. Must be nonnegative.

Browser support

padding-right112143.51

We use cookies to improve your experience. Learn more in our Privacy policy.

×