right

The right property specifies how far a box's right margin edge is offset to the left of the right edge of the box's containing block.

CSS2

right: <length> | <percentage> | auto | inherit
Initial: auto
Applies To: positioned elements
Inherited: no
Percentages: refer to height of containing block
Media: visual

Values

Δ

right: value;
 
Value: Description:
auto Depends on the values of other properties
inherit Takes the same computed value as the property for the element's parent
length Fixed distance from the reference edge
percentage Percentage of the containing block's width

DOM

Δ

[window.]document.getElementById("element-id").style.right = "right";

Example | Values | auto

Δ

Example | Values | length

Δ

Example | Values | percentage

Δ

Example | DOM

Δ

Reference

Δ