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

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

Example Code

td { 
  padding-right: 20px; 
  }