We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!


DIV over IFRAME in Opera 6+

vson asked
Last Modified: 2012-06-27
In IE and NS, I have a DIV(z-index=2) that has no problem displaying over an IFRAME(z-index=1).  However, in Opera the IFRAME is always displaying over the DIV.  

I've tried containing the IFRAME in another DIV but still get the same undesired result.  The IFRAME is a must since I need to change the SRC constantly.

Thanks in advance...
Watch Question

you must be using very new versions of NS and IE, because past versions would have had the same problem you are having with opera, where the IFRAME would always stay on top, as IFRAME had an infinite z-index.

It might just be that IE and NS have finally updated their browsers to fix this problem, and Opera has not yet.

Are you able to post the code?

I wonder how you could get the IFrame 2 work in NS. Maybe you are using NS6.2, because I know that the earlier versions couldn't handle IFrames.
There is a workaround for your problem, by changing your Iframe to a DIV, but you'll need a little serverside coding.... Is this an option?
Unlock this solution and get a sample of our free trial.
(No credit card required)


You're correct that I'm using the latest browsers: Netscape 6.2+ and IE5.5+. However server-side scripting is not an option but I appreciate your input.

That does work. However, hiding the iframe on mouseover is not an option since the iframe covers 80% of the page and would not be consistent with how IE and Netscape handle the current process. I do thank you for your input.


Maybe one of these days we will have some kind of standard...I'm not holding my breath.
Top Expert 2013

This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care

Top Expert 2013

It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

points to Ifabbric


If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

per recommendation

Community Support Moderator @Experts Exchange
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.