CSS property: margin-right

Description

The right margin of a box.

Syntax

margin-right: <length> | <percentage> | auto;

Values

<length>

Specifies a fixed width.

<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).

auto

Versions

Examples

p {
    margin-right: 50px;
}