okay - it's getting late in my corner of the world and I've lost the plot. I'm trying to layer two elements in a horizontal navigation - one is a bar, one is the button above (button is done via unordered list). The button should overlay the bar to give a "you are here" effect. Images to show what I mean are here:
http://www.wroxham.net/teststuff/menu_problem.html
The CSS code is (only part - the full stylesheet is huge):
div.bar_welcome {
width: 608px;
height: 14px;
border-width: 1px 1px 0px 1px; border-style: solid; border-color: rgb(125,113,112);
margin: 0px; padding: 0px;
position: absolute; left: 160px; top: 115px;
background: url('images/bar_welcome.jpg') 0 0 repeat-x;
z-index: 0;
}
#nav {
position: absolute; left: 225px; top: 87px;
margin: 0px; padding: 0px;
}
#nav ul {
margin: 0px; padding: 0px;
list-style: none;
}
#nav ul li a.welcome {
margin: 0px; padding: 5px 10px 7px 10px;
font-size: 13px;
float: left;
background: rgb(232,189,77);
position: relative; z-index: 20;
}
#nav ul li a:hover {
background: none;
}
#nav ul li.wn {
display: block;
text-decoration: none;
color: rgb(0,0,0);
margin: 0px 10px 0px 0px;
font-size: 13px;
padding: 0px;
float: left;
background: rgb(232,189,77);
border-width: 1px 1px 0px 1px; border-style: solid; border-color: rgb(125,113,112);
}
The HTML is:
<div id="nav">
[list]
<li class="wn"><a class="welcome" href="index.php">Welcome</a></li>
</ul>
</div>
<div class="bar_welcome"></div>
The menu works with an unordered list which on hover shows the ul background (to speed image loading times up hover has no background itself). In normal state though the <a class="welcome"> should appear OVER the div.bar_welcome ... and it doesn't in IE (in Firefox of course it works fine)
My gut feeling is that IE doesn't like the fact that the bar is a div whilst the <a class=""> is only a humble list/link thingy.
oh well - will battle on in the morning. if anybody understands IE please let me know!!
PS: if I missed any vital bits of code you need to understand what on earth I'm on about, please let me know.
Terra :(!]