style.pixelRight (Property)

The pixel position of the right edge of the styled element.

Availability:

JScript - 5.0
Internet Explorer - 5.0
Property/method value type:String primitive
JavaScript syntax:IEmyStyle.pixelRight
CSS syntax:pixel-right: aValue
Argument list:aValueA positioning value

This object was added in version 5 of MSIE to complete the set of positioning properties already available with the style object in earlier versions of MSIE.

Objects can be positioned on screen with this property. This value defines the location of the right edge of a styled element. The right edge includes padding, borders and margins around the object as well as its content. The position is located with reference to the next outermost (parent) container.

This property will be useful as an alternative to the style.right property which includes the measurement units when a value is read back from it.

The value in this property will be an integer defined in pixel measurement units only. This is regardless of the settings of the measurement units in the CSS attribute. Refer to the style.posRight property for a more generalized value that can be operated on with different measurement units.

See also:Measurement units, style.posRight, style.right