Hi,
This is an easy one, change your CSS to the following;
ul {
margin: 0;
padding: 0;
list-style: none;
width: auto;
}
ul li {
position: relative;
top: 5px;
left: 1px;
display: inline-block;
}
li ul {
position: absolute;
left: 0;
top: 25px;
display: none;
}
ul li a {
display: block;
text-decoration: none;
font-family: Arial;
font-size: medium;
font-weight: bold;
color: White;
background: #fff;
padding: 5px;
border: 1px solid #ccc;
background-color: Black;
}
/* Fix IE. Hide from IE Mac \*/ * html ul li {
float: left;
}* html ul li a {
height: 1%;
}
/* End */
li:hover ul {
display: block;
}
a:hover {
border-bottom: 1px solid #960;
background-color: Purple
}
startList
function() {
if:(document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for :(i=0; i:<navRoot.childNodes.length; i:++) {
node = navRoot.childNodes[i];
if :(node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this:className=this.className.replaceĀ»
(" over", "");
}
window.onload=startList;
li:hover ul, li.over ul {
display: block; color:Purple; }
ul id="nav"
/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */
#NA
{POSITION:absolute;}
Like to be honest with you, im not too sure what you doing with all those horrible hacks but what floats your boat