The good news is, I found what the problem is but I don’t know how to fix it. I am trying to make a dropdown menu underneath the link “About”
Here is the url for a Wordpress template that I’m slowly working on:
http://www.d415wordpress.com/
Here is the CSS code for the menu:
#navmenu {
width: 900px;
display:block;
float: right;
background: red;
}
#navmenu ul {margin: 0; padding: 0;
list-style-type: none; list-style-image: none; background: red;}
#navmenu li {display: inline; background: red;}
#navmenu a {display: block; text-decoration:none; color: black; background: red; padding: 0 10px; line-height: 38px;}
#navmenu a:hover {color: #ffffff; background: black;}
#navmenu ul ul {
display:none;
position:absolute;
top:38px;
left:0;
}
#navmenu ul ul li {
min-width: 150px;
}
#navmenu ul ul ul {
left:100%;
top:0;
}
#navmenu ul ul a {
background:#333;
height:auto;
line-height:1em;
padding:10px;
width: 150px;
float: left;
margin-left: 0;
}
#navmenu li:hover > a,
#navmenu ul ul :hover > a {
color:#fff;
background:#333;
}
#navmenu ul li:hover > ul {
display:block;
}
Right here is the unordered list inside the main unordered list.
#navmenu ul ul { display:none; position: absolute; z-index: 999; top: 38px; left: 0px; margin-right: 0;
}
When display is set to none, I can rollover the “About” link and make this unordered list appear again. However this rollover effect only works in Mozilla. What can I do for IE8? I already have the latest DOCTYPE in place.
Thanks