Log in

View Full Version : jQuery Multi Level CSS Menu #2 problems in IE7



deannabuckles
03-19-2009, 02:01 AM
:confused: jQuery Multi Level CSS Menu #2 problems.

jqueryslidemenu.css and jqueryslidemenu.js not working in IE7. They work fine in FF but not IE7. Here is the link...just posted it.

http://www.fortpeckcommunityservices.com/new_folder/div_of_ag/index.html

Here is the css coding:

.jqueryslidemenu{
font: bold 11px Arial;
background: #414141;
width: 100%;
}

.jqueryslidemenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}

/*Top level list items*/
.jqueryslidemenu ul li{
position: relative;
display: inline;
float: center;
}

/*Top level menu link items style*/
.jqueryslidemenu ul li a{
display: block;
background: #414141; /*background of tabs (default state)*/
color: white;
padding: 8px 10px;
border-right: 1px solid #778;
color: #2d2b2b;
text-decoration: none;
}

* html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
}

.jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{
color: white;
}

.jqueryslidemenu ul li a:hover{
background: black; /*tab link background during hover state*/
color: white;
}

/*1st sub level menu*/
.jqueryslidemenu ul li ul{
position: absolute;
left: 0;
display: block;
visibility: hidden;
}

/*Sub level menu list items (undo style from Top level List Items)*/
.jqueryslidemenu ul li ul li{
display: list-item;
float: none;
}

/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.jqueryslidemenu ul li ul li ul{
top: 0;
}

/* Sub level menu links style */
.jqueryslidemenu ul li ul li a{
font: normal 13px Verdana;
width: 160px; /*width of sub menus*/
padding: 5px;
margin: 0;
border-top-width: 0;
border-bottom: 1px solid gray;
}

.jqueryslidemenuz ul li ul li a:hover{ /*sub menus hover style*/
background: #eff9ff;
color: black;
}

/* ######### CSS classes applied to down and right arrow images ######### */

.downarrowclass{
position: absolute;
top: 12px;
right: 7px;
}

.rightarrowclass{
position: absolute;
top: 6px;
right: 5px;
}

Snookerman
03-19-2009, 06:36 AM
It doesn't work in Firefox either, that is because you closed the list items before the nested list began. For example, this is what you have now:

<li><a href="#">Economic Development</a></li>
<ul>
<li><a href="#">Upcoming Events</a></li>
<li><a href="#">Staff</a></li>
</ul>

but this is what you should have:

<li><a href="#">Economic Development</a>
<ul>
<li><a href="#">Upcoming Events</a></li>
<li><a href="#">Staff</a></li>
</ul>
</li>

Make sure you fix all these problems and it should work fine.

Good luck!