You are here : cssCSS 3z-index

z-index - CSS 3

The z-index property specifies the stack order of an element.An element with greater stack order is always in front of an element with a lower stack order.Note: z-index only works on positioned elements (position:absolute, position:relative, or position:fixed).


Syntax

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


Example

img
	{
	   
	position: absolute;
	   
	left: 0px;
	   
	top: 0px;
	   
	z-index: -1;
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference