asp.net.ph

Skip Navigation Links

posRight Property

Language References


Sets or retrieves the right position of the object in the units specified by the cascading stylesheet ( CSS ) right attribute.

Syntax


HTML N/A
Script object.style.posRight [ = iRight ]

Possible Values


iRight Any valid floating-point number.

The property is read/write with no default value.

Remarks

This property reflects the value of the cascading stylesheet ( CSS ) right attribute for positioned items. This property always returns zero for nonpositioned items because "right" is not meaningful unless the object is positioned.

Setting this property changes the value of the right position but leaves the units designator for the property unchanged.

Unlike the right property, this property's value is a floating-point number, not a string.

For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.

Example

The following sample demonstrates the use of the posRight object property to set a positioned DIV ten pixels from the right of the client area.

oDiv.style.posRight = 10;
See Also

pixelRight



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note