iandunn Posted August 17, 2010 Share Posted August 17, 2010 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 More sharing options...
ShadowMage Posted August 18, 2010 Share Posted August 18, 2010 I just wanna thank you for posting that article. I could never figure out how to get z-indexes to work, but that really cleared things up for me. So, thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.