OK...working on this vertical menu with fly outs.
http://www.dynamicdrive.com/style/cs...menu-vertical/
Instead of a white background, I changed the colors to fit the color scheme of this web site that i'm working on. The problem is, where I have a sub menu, the parent of that sub menu won't change background colors like the rest. Here's a screenshot:
and on roll over:
the image that's to the right is a transparent gif. It's not stretched or anything.
My CSS:
Code:
.suckerdiv ul{
margin: 0;
padding: 0;
list-style-type: none;
width: 110px; /* Width of Menu Items */
border-bottom: 1px solid #ccc;
}
.suckerdiv ul li{
position: relative;
}
/*Sub level menu items */
.suckerdiv ul li ul{
position: absolute;
width: 120px; /*sub menu width*/
top: 0;
visibility: hidden;
}
/* Sub level menu links style */
.suckerdiv ul li a{
display: block;
overflow: auto; /*force hasLayout in IE7 */
color: black;
text-decoration: none;
background: #7fba42;
padding: 1px 5px;
border: 1px solid #ccc;
border-bottom: 0;
}
.suckerdiv ul li a:visited{
color: black;
}
.suckerdiv ul li a:hover{
background-color: yellow;
}
.suckerdiv .subfolderstyle{
background: url(../images/arrow-list.gif) no-repeat center right;
}
/* Holly Hack for IE \*/
* html .suckerdiv ul li { float: left; height: 1%; }
* html .suckerdiv ul li a { height: 1%; }
/* End */
and my HTML
HTML Code:
<ul id="suckertree1">
<li><a href="/shop_products.php#kits">Kits</a>
<ul>
<li><a href="/shop_products.php#kits">EFI Wet</a></li>
<li><a href="/shop_products.php#kits">EFI Dry</a></li>
</ul>
</li>
<li><a href="/shop_products.php#bottles">Bottles</a></li>
<li><a href="/shop_products.php#guages">Guages</a></li>
<li><a href="/shop_products.php#brackets">Brackets</a></li>
<li><a href="/shop_products.php#valves">Valves</a></li>
<li><a href="/shop_products.php#nozzles">Nozzles</a></li>
<li><a href="/shop_products.php#jets">Jets</a></li>
<li><a href="/shop_products.php#electrical">Electrical</a></li>
<li><a href="/shop_products.php#switches">Switches</a></li>
<li><a href="/shop_products.php#fittings">Fittings</a></li>
<li><a href="/shop_products.php#hoses">Hoses</a></li>
<li><a href="/shop_products.php#labels">Labels</a></li>
<li><a href="/shop_products.php#hardware">Hardware</a></li>
<li><a href="/shop_products.php#misc">Misc</a></li>
</li>
</ul>
I just need the white to be green like the rest, and then yellow on roll over.
I also noticed that when I remove the CSS tag with arrow-list.gif, the green background shows up as it should. I tried to add a background-color: tag, but it still won't work when the .gif is present.
Thanks for any help!
|