Something like this:
Code:
.menu li,.menu li a{float:left}
.menu li.eight,.menu li.eight a {
float:none;
display:block;
overflow:hidden;
text-align:center;
}
.menu li.eight a{
padding:8px 0;
}
(The above is additional code to follow at the end of the css)
If you don't want IE7 and under support you could probably just use display:table instead.
e.g.
Code:
.menu{
display:table;
width:100%;
}
.menu li{
display:table-cell;
text-align:center;
}
.menu li a{
padding:8px 0;
}
Of course you would then need to reset the styles for the nested dropdown lists back to their original.
Bookmarks