style.right (Property)

A positioning reference point.

Availability:

CSS level - 2
DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.right
CSS syntax:right: aPosition
Argument list:aPositionA right coordinate value

A CSS-P positioning style attribute that controls the location of an element relative to its containing parent element. The right edges of the two elements are used as the reference points.

The value can specified in the usual pixel or fractional em-dash measurement units or the auto keyword can be used to let the browser do the positioning itself.

The exact positioning is affected by settings for padding, border, margin and the position property.

See also:Measurement units, style.bottom, style.left, style.pixelRight, style.posRight, style.top