Hello,
I am kind of a newbie at CSS and therefore a newbie at resolving issues for CSS problems in different browsers. In all other web browsers except IE
, my drop down works perfectly. When the drop down is used in IE, however, instead of "dropping down" it flows out horizontally and covers the drop down button next to it. I know it does this in IE 7 and IE 8, not quite sure about IE 9, but alas the majority of users will be web browsing in those browsers and I need better compatibility. Is there something wrong with my CSS? Is this issue known to happen to CSS-only drop down menus? Should I switch to a combined CSS and Jquery-based dropdown menu. I have already checked to make sure if the -moz-kit and -web-kit shadows (already took out the IE box shadow hack because it cause the text to have shadow which I didn't like) were affecting IE using inspect in IE, so that is one thing that it is not the problem.
Thanks, sorry for the lengthy CSS and issue, and here's the CSS for the drop down only:
I am kind of a newbie at CSS and therefore a newbie at resolving issues for CSS problems in different browsers. In all other web browsers except IE
Thanks, sorry for the lengthy CSS and issue, and here's the CSS for the drop down only:
Code:
#nav-menu ul
{
list-style: none;
padding: 0;
margin: 0;
}
#nav-menu li
{
float: left;
margin: 1px;
}
#nav-menu li a
{
background: #ff0000;
height: 50px;
line-height: 25px;
float: left;
width: 239px;
display: block;
border: 1px solid #000;
color: #0d2474;
text-decoration: none;
text-align: center;
border-style: solid;
border-width: 1px;
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
}
#nav-menu li a:hover
{
background: #FF3333;
height: 50px;
line-height: 35px;
float: left;
width: 239px;
display: block;
border: 1px solid #000;
color: #0d2474;
text-decoration: underline;
text-align: center;
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
}
#nav-menu li ul
{
display: none;
background-color: #FF3333;
}
#nav-menu li:hover ul
{
display: block;
position: absolute;
margin: 0;
padding: 0;
}
#nav-menu li:hover li
{
float: none;
}
#nav-menu li:hover li a
{
background: #FF3333;
height: 50px;
line-height: 35px;
float: left;
width: 239px;
display: block;
border: 1px solid #000;
color: #0d2474;
text-align: center;
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
}
#nav-menu li li a:hover
{
background: #FF3333;
height: 50px;
line-height: 35px;
float: left;
width: 239px;
display: block;
border: 1px solid #000;
color: #03F;
text-decoration: underline;
text-align: center;
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
}
Last edited by a moderator: