--- title: right slug: Web/CSS/right translation_of: Web/CSS/right ---
Bu CSS değeri pozisyonlanan elemanların yerleştirilmesinde rol alır.
{{Cssxref("position")}}: absolute or position: fixed olarak yerleştirilmiş elemanların sağ marjin kenarı ile bu elemanı barındıran elemanın sağ kenarı arasındaki mesafeyi belirler.
right değerinin pozisyonlanmamış elemanlar üzerinde etkisi yoktur.
Hem right hem de {{cssxref("left")}} değerleri tanımlanmış ise, elemanın pozisyonu gereğinden daha detaylı tanımlanmış olarak kabul edilir. Bu durumda, barındıran elemanın metin yerleşimi soldan sağa ise {{cssxref("left")}} değeri, sağdan sola ise right değeri geçerli kabul edilir. Soldan sağa yerleşimlerde right değeri -left, sağdan sola yerleşimlerde left değeri -right olarak tekrar hesaplanır.
{{cssinfo}}
Formal syntax: {{csssyntax("right")}}
right: 3px /* <uzunluk> değeri */ right: 2.4em right: 10% /* barındıran bloğun yüzdesi olarak */ right: auto right: inherit
<uzunluk><yüzde>autowidth: auto as a width based on the content.left is also auto, do not offset it at all.inheritauto keyword.#example_3 {
width: 600px;
height: 400px;
background-color: #FFC7E4;
position: relative;
top: 20px;
left: 20px;
}
#example_4 {
width:200px;
height:200px;
background-color: #FFD7C2;
position:absolute;
bottom:10px;
right: 20px;
}
<div id="example_3">Example 3</div> <div id="example_4">Example 4</div>
{{LiveSampleLink('Examples', 'Example Demo Link')}}
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('CSS3 Transitions', '#animatable-css', 'right')}} | {{Spec2('CSS3 Transitions')}} | Defines right as animatable. |
| {{SpecName('CSS2.1', 'visuren.html#propdef-right', 'right')}} | {{Spec2('CSS2.1')}} |
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 1.0 | {{CompatGeckoDesktop("1")}} | 5.5 | 5.0 | 1.0 |
| Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 1.0 | {{CompatGeckoMobile("1")}} | 6.0 | 6.0 | 1.0 |