|
Using a hybrid of Suckfish Dropdowns and Drop-Down Menus Horizontal Style (by Nick Rigby), I constructed the following navigation menu. However, once I had the overall design of my site in place, I decided that having a gradient background would work better than just plain color.
However, even though I understand the basics here, I cannot figure out how to add a background image. I've tried placing the proper code in the logical areas, but all I get is a color- and picture-less menu.
Perhaps somewhere here with more knowledge could let me know what exactly I need to change?
ul {
margin: -5px 0 0 0;
padding: 0;
list-style: none;
position: relative; z-index: 1;
}
li {
float: left;
position: relative;
width: 92px;
border-bottom: 1px solid #fff;
}
li ul {
display: none;
position: absolute;
top: 1em;
left: 0;
text-align: left;
}
li > ul {
top: auto;
left: auto;
}
ul li a {
display: block;
text-decoration: none;
color: #fff;
background: #91125f;
padding: 4px;
border: 1px solid #fff;
border-bottom: 0;
font-size: 12px;
font-family: Arial, sans serif;
}
li:hover ul, li.over ul {
display: block;
margin-top: 0;
}
#nav a:hover {
color: #91125f; background-color: #fff;
}
/* Fix IE. Hide from IE Mac \*/
* html ul li {float: left; height: 1%;}
* html ul li a {height: 1%;}
/* End */
Last edited by empressreborn; 11-14-2007 at 11:05 AM..
|