VML Z-Index Attribute

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.

Determines the display order of overlapping shapes. Read/write. String.

Applies To


Tag Syntax

<v: element style="z-index: expression ">

Script Syntax

element .style.zindex="expression"



The Z-Index attribute is similar to the standard HTML Z-Index attribute for styles.

Values include:

Value Description
Auto The order that the shapes appear in the HTML page will be used, bottom to top.
order A number that represents the stacking precedence. A shape with a a higher number will be displayed as if it wereoverlapping (in "front" of) a shape with a lower number. Negative numbers can be used.


VML Standard Attribute


The red shape will be displayed in "front" of the blue shape, because it has a higher z-index.

   <v:rect id=bluerect fillcolor="blue"
   <v:rect id=redrect fillcolor="red"

Z-Index Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)



Send comments about this topic to Microsoft

Build date: 2/7/2012

Community Additions