I have a case where a 3rd party ad is bleeding through my modal window implementation. I’d like to up the z-index of the modal overlay as high as possible so the ad won’t show on top of it. Is there a limit to z-index values? I’m sure if there is it varies by browser. Anyone know?
Share
Keep in mind that
z-indexdoesn’t work globally, but only within a ‘stacking context’ (which has hard to digest definition in CSS), and if the ad establishes it’s own stacking context, thenz-indexvalues you set elsewhere may not affect it at all.However more likely it’s an issue of ‘windowed’ Flash (object without
wmode=transparentattribute), which browsers render on top of everything, as if was a window above browser’s window. In such casez-indexwon’t help at all. You’ll need to force ad[-provider] to usewmode=transparentor use some crazy hacks with iframes.