Daya,
Like I said earlier you need a few more specific selectors to get the menu working the way you want it to work. I changed some of the css and added an ID tag to all of them to make sure that the menu list was the only one inheriting the style properties.
To your main page just add <DIV id="menu"> (You had <DIV id=menu>) and copy the css below. I've checked it and it should work for all browsers except for IE.
Code:
#menu ul {
margin: 0;
padding: 0;
list-style-type: none;
width: 150px;
}
#menu li {
margin: 0px;
padding: 0px;
height: 1.1em;
line-height: 1.1em; /* Vertically centers text */
width: 150px;
}
#menu ul li ul {
position: absolute;
left: 151px;
top: 0px;
display: none;
width: 180px;
}
#menu li ul li {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #FFFFFF;
width: 180px;
height: 1.5em;
line-height: 1.5em; /* Vertically centers text */
}
#menu a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
text-decoration: none;
padding-left: 10px;
color: #336600;
display: block;
}
#menu li:hover a {
color: #FFFFFF;
background-color: #77BB28;
}
/* Keeps the hover over the parent menu while hovering through the child menu*/
#menu li:hover li a:hover{
background-color: #DDEEC9;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #FFFFFF;
}
/* Sets the the intial state of the dropdown back to default until it's hovered over again*/
#menu li:hover li a{
color: #000000;
background-color: #BBDD93;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #FFFFFF;
}
/* Places the list next to the parent list */
#menu ul li:hover{
position: relative;
}
#menu li:hover ul{
display: block;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #000000;
}
/* HTML Hacks */
* html #menu ul li { float: left; height: 1%; }
* html #menu a {height: 1%; /* to make display: block work properly */ }
Let me know if you have any more questions.
Trinity
Bookmarks