![]() |
| Browser support | Info | ||||
|---|---|---|---|---|---|
| IE | FF | Op | Saf | Version | Depr. |
For absolutely positioned elements this property defines how far the right edge of an element is to the left of the right edge of the containing block (beginning at the padding's edge). The containing block of an absolutely positioned element is the first ancestor whose position property is set to absolute, fixed or relative.
For relatively positioned elements this property defines how far the right edge of the element is to the left of the position that the element would be at normally.
If both right and left have values one of the values will be overriden. If the direction property is set to rtl, left will be ignored and if the direction property is set to ltr, right will be ignored.
| Values | Description |
| auto | Default. The browser calculates the right position. |
| percentage | Defines a right position percentage value from the edge of an element. |
| length | Defines a right position length from the edge of an element. |
Available since CSS 2.0
direction
Available since CSS 2.0
Some absolutely positioned text.
Some ordinary text
Some ordinary text
Some ordinary text
Some ordinary text
Some ordinary text
Comments