right property
Sets or retrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy.
![]() |
Syntax
Integer value = object.put_right(Variant v);Integer value = object.get_right(Variant* sPosition);
Property values
Type: VARIANT
one of the values listed in Possible Values.auto (auto)
-
Default. Position is determined by the regular HTML layout of the page.
length (length)
-
Floating-point number, followed by an absolute units designator (
cm,mm,in,pt, orpc) or a relative units designator (em,ex, orpx). For more information about the supported length units, see CSS Values and Units Reference. percentage (percentage)
-
Integer, followed by a percent sign (%). The value is a percentage of the width of the parent object.
String format
<length>
|
<percentage>
| auto
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS 2.1, Section 9.3.2
Remarks
Only use the IHTMLCSSStyleDeclaration::right attribute when the IHTMLCSSStyleDeclaration::position attribute is set; otherwise, the value of the IHTMLCSSStyleDeclaration::right attribute is ignored.
You cannot use the IHTMLCSSStyleDeclaration::right property in script to calculate the position of the object in the document, because the value of the IHTMLCSSStyleDeclaration::right property is a string. Instead, use the IHTMLRuleStyle2::pixelRight property or the IHTMLRuleStyle2::posRight property.
You cannot use the IHTMLCSSStyleDeclaration::right property to calculate the position of the object in the document, because the value of the IHTMLCSSStyleDeclaration::right property is a string.
For more information about how to access the dimension and location of objects on the page through the DHTML Object Model, see Measuring Element Dimension and Location with CSSOM in Internet Explorer 9.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
Build date: 11/12/2012
