Position Attribute (Shape)(VML)

This topic describes VML, a feature that is deprecated as of Windows Internet Explorer 9. Webpages and applications that rely on VML should be migrated to SVG or other widely supported standards.

Note As of December 2011, this topic has been archived. As a result, it is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.

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"



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


The position of the rectangle is displayed using the relative style.

   <v:rect id=myrect fillcolor="red"

Position Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)

Send comments about this topic to Microsoft

Build date: 2/7/2012