Jump to content

Z-Index Page Inaccurate


iandunn

Recommended Posts

http://www.w3schools.com/css/pr_pos_z-index.asp says that,
An element with greater stack order is always in front of an element with a lower stack order.
This is misleading. It should read something more like,
An element with greater stack order is always in front of an element with a lower stack order , if both are within the same stacking context.
Paolo Lombardi's article called The Stacking Context explains it well. In his example, div #4 has a higher z-index than div #1, but it appears below div #1 because div #4's parent has a lower z-index than div #1.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...