sainture
7/1/2015 - 3:03 PM

z-index property

z-index property

/*
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.
z-index only works on positioned elements (position:absolute, position:relative, or position:fixed)

The “z-index” property can only be applied to elements which are positioned,
so in order to apply it to an element, the element needs to have “position” property set to a
different value than “static”

*/

div {
  position: relative;
  z-index: 1;  
}