drums
11-07-2008, 02:32 AM
I have posted this on some other forums but not getting help so need to expand audience.
I can't get the background to change images, only the <LI> text bg changes. I tried making the .ul and .li separate but that messed other things up.
[CODE]
ul.leftside li {
font: bold 11px Helvetica,sans-serif;
color: #FFF;
background: url(images/left_menu-bg.jpg) no-repeat;
margin: 7px 10px 5px 0px;
list-style-type: none;
text-indent: 40px;
}
#leftside li a, #leftside li a:visited, #leftside li a:active { color: #FFF; text-decoration: none; }
#leftside ul a:hover, leftside li a:hover { color: #404040; text-decoration: none; background-image: url(images/left_menu-bg_ovr.jpg); }
HTML
<ul class="leftside">
<li><a href="#">Rooms</a></li>
<li><a href="#">Reservations</a></li>
<li><a href="#">Siteseeing</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
[\CODE]
The hover works but only in the <LI> and not the background for the whole <UL>.
Thanks in advance for your help!
I can't get the background to change images, only the <LI> text bg changes. I tried making the .ul and .li separate but that messed other things up.
[CODE]
ul.leftside li {
font: bold 11px Helvetica,sans-serif;
color: #FFF;
background: url(images/left_menu-bg.jpg) no-repeat;
margin: 7px 10px 5px 0px;
list-style-type: none;
text-indent: 40px;
}
#leftside li a, #leftside li a:visited, #leftside li a:active { color: #FFF; text-decoration: none; }
#leftside ul a:hover, leftside li a:hover { color: #404040; text-decoration: none; background-image: url(images/left_menu-bg_ovr.jpg); }
HTML
<ul class="leftside">
<li><a href="#">Rooms</a></li>
<li><a href="#">Reservations</a></li>
<li><a href="#">Siteseeing</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
[\CODE]
The hover works but only in the <LI> and not the background for the whole <UL>.
Thanks in advance for your help!