CSS padding-right

Demo

The CSS padding-right property is used to apply padding to the bottom side of an element.

Also see the padding, padding-bottom, padding-top and padding-left properties.

Syntax

padding-right: <value>

Possible Values

  • <length>
  • <percentage>
  • inherit

Specifications

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.
Inherited?
No
Media
Visual
Animatable
Yes (see example)

Example Code

td { 
  padding-right: 20px; 
  }