HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

margin-right

Description

The margin-right property for CSS sets the right margin of a box.

Syntax

CSS

margin-right: value;

JS

object.style.marginRight = "value";

Values

<'margin-right'> = <length-percentage> | auto
<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 (%).

auto

Automatically specified by the user agent.

Initial

0

Examples

1 · auto

2 · length

3 · percentage

4 · JS