Position Attribute | Internet Development Index |
Defines the type of positioning used to place an element. Read/write String.
Applies To
Tag Syntax
<v:element style="position: expression">
Script Syntax
element.style.position="expression"
expression=element.style.position
Remarks
The Position attribute is similar to the standard HTML Position attribute used with style sheets.
Values include:
Value | Description |
static | Default. The element is positioned according to the normal flow of the page. The Top and Left attributes are ignored. If the object is anchored inline, which only happens in Microsoft Word, this value is used. |
absolute | The element is positioned relative to the parent, using the Top and Left attributes. This value is used by Microsoft Word and Microsoft Excel floating objects, and Microsoft PowerPoint slides. |
relative | The element is positioned according to the normal flow of the page, but the Top and Left attributes are used. The overlap of overlapping elements is governed by the Z-Index attribute. |
VML Standard Attribute
Example
The position of the rectangle is displayed using the relative style.
<v:rect id=myrect fillcolor="red" style="position:relative;top:1;left:1;width:20;height:20"> </v:rect>
Position Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)