Menu Home

padding-right

osbo.com | CSS | Properties | padding-right

The padding-right CSS property sets the right padding of a box.

Syntax

CSS

padding-right: value;

JS

object.style.paddingRight = "value";

Values

<'padding-right'> = <length-percentage>
<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

Initial

0

Examples

length

percentage

JS

Internal

padding

padding-bottom

padding-left

padding-top

External

World Wide Web Consortium (W3C)