OK...I have changed the page a bit and now I've got a different way of doing it, but IE is still giving me problems....
Go to the above link and mouseover the submenus and you will notice the bg image on the menu heading will flash every time you hover over a new submenu item.
The stylesheet is internal if you want to take a look.
Code:
body {
background-image: url('index_layout.jpg');
background-repeat: no-repeat;
background-position: top left;
}
ul#nav {
margin: 0;
padding: 0;
list-style: none;
width: 184px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
position: absolute;
top: 94px;
left: 11px;
}
.main {
background-image: url('bg2.gif');
background-repeat: no-repeat;
}
li {
margin-bottom: 0px;
/*background-image: url(bg2.gif);
background-repeat: no-repeat;*/
}
ul li {
position: relative;
}
li ul {
position: absolute;
left: 182px!important;
left: 141px;
top: 0;
display: none;
list-style: none;
width: 150px;
padding: 0px 0px 0px 5px;
}
ul#nav li ul li a {
background-color: #1c1c1c;
background-image: none;
opacity:.70;
filter: alpha(opacity=70);
-moz-opacity: .70;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: white;
padding-left: 8px;
margin: 0px 0px 0px 0px;
}
ul#nav li ul li a:hover {
background-color: #1c1c1c;
background-image: none;
opacity: 1.0;
filter: alpha(opacity=100);
-moz-opacity: 1.0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: white;
}
ul li a {
display: block;
text-decoration: none;
color: #FFF;
background: #fff;
padding: 2px 0px 4px 40px;
background-color: #1c1c1c;
/*background-image: url("http://www.bondurant.com/test/bg2.jpg");
background-repeat: no-repeat;*/
}
/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */
ul li:hover ul, ul li.over ul {
display: block;
}
Bookmarks