Friday, August 26, 2011

IE7 Z-Index ignored

Using this nice little menu:

Part of the stack got slid behind a slide. Setting a z-index worked *except* IE7 ignored it.


IE's stacking order algorithm is messed up. You have to position the parent of the element you want on top, give it a position like relative if it doesn't already have one, and a positive z-index.
That will usually resolve it. If not, keep trying the parent of that until you get it.

No comments: