> Everything works fine until the iframe has a pdf or word document sent to it.
It's a little strange to have pdf files and word documents inside an iframe in the first place.
Main Topics
Browse All TopicsHey guys, I have a site with a CSS driven drop down menu and a page that has an iframe in it. Everything works fine until the iframe has a pdf or word document sent to it. Once that happens, the drop down menu only shows the top of the dropdown and the rest seems to float under the iframe. I want to find a way to make sure the css menu stays on top of the iframe. Here is my code:
CSS **************************
body {
font: normal 11px verdana;
}
#nav, #nav ul {
padding: 0;
width:1000px;
margin: 0 auto;
list-style: none;
line-height: 1;
}
#nav a {
width: 13em;
display: block;
border: 1px solid #ccc;
text-decoration: none;
color: #777;
padding:4px;
background-color: #fff;
text-align: center;
}
#nav li {
float: left;
}
#nav li ul {
position: absolute;
left: -999em;
width: 13em;
}
#nav li ul ul {
left: -999em;
}
#nav li a:hover {
color: #FF8000;
background-color: #f9f9f9;
}
#nav li:hover ul, #nav li.over ul {
left: auto;
}
HTML index page **************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html
<html>
<head>
<title>Commercial Services Group - Resource Page</title>
<script type="text/javascript">
startList = function() {
if (document.all&&document.ge
navRoot = document.getElementById("n
for (i=0; i<navRoot.childNodes.lengt
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function(
this.className+=" over";
}
node.onmouseout=function()
this.className=this.classN
}
}
}
}
}
window.onload=startList;
</script>
<link rel=stylesheet href="css/style.css" type="text/css">
</head>
<body>
<center>
<img src="images/banner.jpg">
</center>
<ul id="nav">
<li><a href="home/intro.html" target="main">Home</a>
<ul>
<li><a href="home/news.html" target="main">What's New</a></li>
</ul>
</li>
<li><a href="reference/reference.
<ul>
<li><a href="reference/reference.
<li><a href="reference/reference.
<li><a href="reference/reference.
<li><a href="reference/reference.
<li><a href="reference/reference.
<li><a href="reference/reference.
</ul>
</li>
<li><a href="#">Projects</a>
<ul>
<li><a href="projects/completed_i
<li><a href="projects/large_proj.
</ul>
</li>
<li><a href="#">Links</a>
<ul>
<li><a href="links/external.html"
<li><a href="links/internal.html"
</ul>
</li>
<li><a href="meeting_minutes/sale
<ul>
<li><a href="meeting_minutes/sale
<li><a href="meeting_minutes/sale
<li><a href="meeting_minutes/sale
</ul>
</li>
<li><a href="#">Help</a>
<ul>
<li><a href="mailto:jayce.loh@atc
<li><a href="help/search.html" target="main">Search</a></
</ul>
</li>
</ul>
<center><p><p><p>
<table width="1000" border="0">
<tr>
<td> </td>
</tr>
<tr>
<td><iframe name="main" height="750" width="1000" frameborder="0" src="home/intro.html"></if
</tr>
</table>
</center>
</body>
</html>
Any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Exactly -- browsers cannot NATIVELY interpret either PDF files or WOORD files -- that is why they open a "helper" application, to spawn a separate process to open that file type. I verture to say that no browser will be able to open either a PDF or WORD file in a browser Iframe. It cannot be done with current browser specs.
Business Accounts
Answer for Membership
by: ssammonsPosted on 2005-02-11 at 10:41:45ID: 13288696
I do beleive this is an Internet Explorer flaw. You can try the z-index CSS attribute. This is how you "layer" elements.
I have tried this on form elemtents, Iframes, etc. Online FireFox and the like placed them above it. IE seems to place them at the forefront.
Maybe someone else knows of a way, but I know from experience IE tends to not layer things over forms and frames.