zIndex property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the stacking order of positioned objects.
Syntax
Integer value = object.put_zIndex(Variant v);Integer value = object.get_zIndex(Variant* vOrder);
Property values
Type: VARIANT
auto (auto)
-
Default. String that specifies the stacking order of the positioned objects based on the order in which the objects appear in the HTML source.
order (order)
-
Integer that specifies the position of the object in the stacking order.
String format
auto | order
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Remarks
Positive z-index values are positioned above a negative (or lesser value) z-index. Two objects with the same z-index are stacked according to source order. A positive value positions the element above text that has no defined z-index, and a negative value positions it below. Set this parameter to NULL to remove the attribute.
The z-index property only applies to objects that have the position property set to relative or absolute.
The property does not apply to windowed controls, such as select objects.
Input from pointing devices, such as a mouse, does not penetrate through overlapping elements even if the elements are not visible. This is also true for positioned elements with a negative z-index unless:
- The parent is a scrolling container (that is, its overflow property is set to auto or scroll).
- The parent is positioned (that is, its position property is set to absolute, relative, or fixed).
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
IDL |
|
|
DLL |
|
Build date: 1/23/2012