Reputation: 75
I've got a nested list which I intend to use as a drop-down list in my navigation, but the background color for the drop-down list isn't displaying properly. It's just showing as an underline for the parent list item, not as a background color for all of the nested list items. I'm not sure why it's not working since I set the background color style for the nested list items specifically.
Here is my code: HTML - http://pastebin.com/W5w8HWyj CSS - http://pastebin.com/Wi4j3L63
Upvotes: 0
Views: 63
Reputation: 75
You can use a for this with #nav ul li:hover li{background:#B6B6B6;border-bottom:1px solid #000;width:150px; padding-left:10px;} set.
Upvotes: 0
Reputation: 643
#nav ul li ul{
background-color: #606060;
}
is it like what u want? SEE FIDDLE
Upvotes: 1