z index html code example
Example 1: z-index max value
z-index: 2147483638; //max value, fully mdoern cross-browser compatible
Example 2: css z index
img {
position: absolute;
/*position: relative;
//position: fixed;*/
left: 0px;
top: 0px;
z-index: -1;
}
The z-index property specifies the stack order of an element.
Example 3: css z-index
#nav {
position: fixed;
...
z-index: 2;
}
#main {
position: absolute;
...
z-index: 1;
}
Example 4: default z index
the default z-index is 0.