z-index with iframe

Posted on 2011-11-01
Medium Priority
Last Modified: 2012-05-12
On my page I have an iframe and a popup message box. The pop up box always appears underneath the iframe even with z-index set. Is there a way to get the pop up box to appear above the iframe?

To see go to the below page and at the bottom of the page mouse over the words 'privacy policy'

thanks for any help
Question by:elliottbenzle
LVL 17

Expert Comment

ID: 37062303
Have you tried with this

<div class="tooltip" style="position: absolute; left: 814px; top: 454px; display: none; z-index:1000">All personal information provided to CMR is kept strictly confidential and is not sold or exchanged with any other entity.</div>

Author Comment

ID: 37063352
Yes, I tried adding a z-index to both the iframe and the .tooltip div

Ne effect though.
LVL 53

Accepted Solution

COBOLdinosaur earned 2000 total points
ID: 37064150
If the iframe is not positioned it will not respond to z-index.  So position:relative or position:absolute my do it, however from the look of the code, I doubt that page validates, and there will probably be cross browser issues with it.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question