Z-Index Attribute | Internet Development Index |
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"
expression=element.style.zindex
Remarks
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 were overlapping (in "front" of) a shape with a lower number. Negative numbers can be used. |
VML Standard Attribute
Example
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" style="position:relative;top:1;left:1;width:20;height:20;z-index:1"> </v:rect>
<v:rect id=redrect fillcolor="red" style="position:relative;top:10;left:10;width:20;height:20;z-index:2"> </v:rect>
Z-Index Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)
闸北区| 延川县| 彭山县| 额济纳旗| 耿马| 吉安县| 资中县| 成武县| 贵德县| 镇康县| 龙门县| 松潘县| 曲阜市| 阜新市| 新晃| 龙州县| 宣汉县| 临江市| 秦安县| 正阳县| 苏尼特左旗| 普宁市| 太仆寺旗| 高雄县| 罗源县| 清镇市| 西林县| 大丰市| 蓬溪县| 策勒县| 大丰市| 顺昌县| 平果县| 楚雄市| 定西市| 徐水县| 遂昌县| 黑水县| 衡南县| 静宁县| 健康|