Welcome to WebmasterWorld Guest from 54.146.195.24

Forum Moderators: not2easy

Message Too Old, No Replies

CSS Drop-Down Menu Not Working In Explorer.

Internet Explorer Compatibility issues with CSS menu

     
10:47 am on Sep 30, 2009 (gmt 0)

New User

10+ Year Member

joined:Sept 9, 2008
posts: 13
votes: 0


Hello, I am having major issues getting a drop-down menu to work in explorer. I generated the code from pure css menu. It works fine in wordpress and phpbb, however for my regular pages it doesn't.

Here is the code...

<!-- Css Menu -->

<style>
ul.cssMenu ul{display:none}
ul.cssMenu li:hover>ul{display:block}
ul.cssMenu ul{position: absolute;left:-1px;top:98%;}
ul.cssMenu ul ul{position: absolute;left:98%;top:-2px;}
ul.cssMenu,ul.cssMenu ul {
margin:0px;
list-style:none;
padding:0px 0px 0px 0px;
background-color:#110E0B;
background-repeat:repeat;
border-color:#000000;
border-width:1px;
border-style:solid;
}
ul.cssMenu table {border-collapse:collapse}ul.cssMenu {
display:block;
zoom:1;
float: left;
}
ul.cssMenu ul{
width:143.85px;
}
ul.cssMenu li{
display:block;
margin:2px 0px 0px 2px;
font-size:0px;
}
ul.cssMenu a:active, ul.cssMenu a:focus {
outline-style:none;
}
ul.cssMenu a, ul.cssMenu li.dis a:hover, ul.cssMenu li.sep a:hover {
display:block;
vertical-align:middle;
background-image:url(http://www.example.com/menubackgroundblack.jpg);
background-color:#110E0B;
border-width:1px;
border-color:#110E0B;
border-style:solid;
text-align:left;
text-decoration:none;
padding:2px 5px 2px 10px;
_padding-left:0;
font:bold 9px Verdana;
color: #7E9697;
text-decoration:none;
cursor:default;
}
ul.cssMenu span{
overflow:hidden;
}
ul.cssMenu li {
float:left;
}
ul.cssMenu ul li {
float:none;
}
ul.cssMenu ul a {
text-align:left;
white-space:nowrap;
}
ul.cssMenu li.sep{
text-align:left;
padding:0px;
line-height:0;
height:100%;
}
ul.cssMenu li.sep span{
float:none;padding-right:0;
width:3px;
height:100%;
display:inline-block;
background-color:#cccccc #111111 #111111 #cccccc;background-image:none;}
ul.cssMenu ul li.sep span{
width:100%;
height:3px;
}
ul.cssMenu li:hover{
position:relative;
}
ul.cssMenu li:hover>a{
background-color:#536364;
border-color:#536364;
border-style:solid;
font:bold 9px Verdana;
color: #000000;
text-decoration:none;
background-image:url(http://www.example.com/menubackground3.jpg);
}
ul.cssMenu li a:hover{
position:relative;
background-color:#536364;
border-color:#536364;
border-style:solid;
font:bold 9px Verdana;
color: #000000;
text-decoration:none;
background-image:url(http://www.example.com/menubackground3.jpg);
}
ul.cssMenu li.dis a {
color: #666 !important;
}
ul.cssMenu img {border: none;float:left;_float:none;margin-right:2px;width:16px;
height:16px;
}
ul.cssMenu ul img {width:16px;
height:16px;
}
ul.cssMenu img.over{display:none}
ul.cssMenu li.dis a:hover img.over{display:none !important}
ul.cssMenu li.dis a:hover img.def {display:inline !important}
ul.cssMenu li:hover > a img.def {display:none}
ul.cssMenu li:hover > a img.over {display:inline}
ul.cssMenu a:hover img.over,ul.cssMenu a:hover ul img.def,ul.cssMenu a:hover a:hover ul img.def,ul.cssMenu a:hover a:hover img.over,ul.cssMenu a:hover a:hover a:hover img.over{display:inline}
ul.cssMenu a:hover img.def,ul.cssMenu a:hover ul img.over,ul.cssMenu a:hover a:hover ul img.over,ul.cssMenu a:hover a:hover img.def,ul.cssMenu a:hover a:hover a:hover img.def{display:none}
ul.cssMenu a:hover ul,ul.cssMenu a:hover a:hover ul{display:block}
ul.cssMenu a:hover ul ul{display:none}
ul.cssMenu span{
display:block;
background-image:url(http://www.example.com/images/arr_white.gif);
background-position:right center;
background-repeat: no-repeat;
padding-right:12px;}
ul.cssMenu li:hover>a>span{background-image:url(http://www.example.com/images/arrv_white.gif);
}
ul.cssMenu a:hover span{_background-image:url(http://www.example.com/images/arrv_white.gif)}
ul.cssMenu ul span,ul.cssMenu a:hover table span{background-image:url(http://www.sample.com/images/arr_white.gif)}

</style>

<ul class="cssMenu cssMenum">
<li class=" cssMenui"><a class=" cssMenui" href="http://example.com/"><span>HOME</span><![if gt IE 6]></a><![endif]><!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class=" cssMenum">
<li class=" cssMenui"><a class=" cssMenui" href="http://www.example.com/">One</a></li>
<li class=" cssMenui"><a class=" cssMenui" href="http://www.example.com/"><span>One</span><![if gt IE 6]></a><![endif]><!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class=" cssMenum">
<li class=" cssMenui"><a class=" cssMenui" href="http://www.example.com/wrestlingnews/">TWO</a></li>
<li class=" cssMenui"><a class=" cssMenui" href="http://www.example.com/wrestlingnews/">THREE</a></li>
<li class=" cssMenui"><a class=" cssMenui" href="http://www.example.com/wrestlingnews/">FOUR</a></li>
<li class=" cssMenui"><a class=" cssMenui" href="http://www.example.com/wrestlingnews/">FIVE</a></li>
</ul>
</ul>

<!-- Css Menu End -->

[edited by: swa66 at 10:54 am (utc) on Sep. 30, 2009]
[edit reason] use example.com to anonymize and no URL, please see ToS and Forum Charter [/edit]

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members