1.

How does the Z Index work in CSS3?

Answer»

In CSS, the z-index property specifies the stack ORDER of elements. An element having a greater stack order is placed in FRONT of an element with a lower stack order.

Here’s its CSS Syntax:

z-index: auto|number|initial|inherit;

Here’s an EXAMPLE to set the z-index of an image:

img {
   position: fixed;
   left: 3px;
   top: 10px;
   z-index: -2;
}



Discussion

No Comment Found