Wednesday 18 July 2012

z-index property

z-index specifies stack order of an element. An element which has greater stack order means greater z-index value is always in front of an element which has low stack order.
z-index works only on positioned elements like: position:absolute, position:relative, or position:fixed.
z-index property value:
auto: Stack order equal to its parents stack order value. This is default value.
number: Sets stack order for any element this value can be negative.
inherit: This property specifies that the z-index should be inherited from the parent element.

No comments:

Post a Comment