ul.menu {
margin: 0;
padding: 0;
list-style: none;
}
ul li {
display: block;
position: relative;
float: left;
}
li ul {
display: none;
}
ul li a {
display: block;
text-decoration: none;
color: #FFFFFF;
border-top: none;
padding: 5px 15px 5px 15px;
background-color: #0000FF;
margin-left: 1px;
white-space: nowrap;
}
ul li a:hover {
background-color: #666666;
}
li:hover ul {
display: block;
position: absolute;
}
li:hover li {
float: none;
}
li:hover a {
background-color: #666666;
}
li:hover li a:hover {
background-color: #0000FF;
}