CSS property: padding-right

Description

The right padding of a box.

Syntax

padding-right: <length> | <percentage>;

Values

<length>

Specifies a fixed width.

0 (by default)
<percentage>

The percentage is relative to the width of the containing block, not the height (at least in a horizontal flow; in a vertical flow they are relative to the height).

Versions

Examples

body {
    padding-right: 50px;
}