z-indexNN 4 IE 4 CSS 2

Inherited: No

For a positioned element, this sets the stacking order relative to other elements within the same parent container. See Chapter 4 for details on relationships of element layering amid multiple containers.

 
CSS Syntax
 
z-index: integer | auto
 
Value

Any integer value. A value of auto is the same as a value of zero. When all elements in the same parent container have the same z-index value, the stacking order is determined by element source code order.

 
Initial Value

auto

 
Example
 
div#instrux {position: absolute; left: 50; top: 70; z-index: 2}
 
Applies To

Positioned elements.

 
Object Model Reference
 
[window.]document.getElementById("elementID").style.zIndex