# Property Description

For absolute positioned elements, the right property sets the right edge of an element to a unit to the left/right of the right edge of its containing element.

For relative positioned elements, the right property sets the right edge of an element to a unit to the left/right to its normal position.

Note: This property has no effect when the `position` is set to `static`.

# Property Values

Value | Description
--- | ---
auto | (default) Lets the browser calculate the right edge position
length | Sets the right edge position in px, cm, etc. Negative values are allowed
% | Sets the right edge position in % of containing element. Negative values are allowed
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example sets the right edge of the image element to 10px to the left of the right edge of its containing element.

    img {
      position:absolute;
      right:10px;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | No
Defined In: | CSS2