IE 6 menu problem, anyone help? [Solved]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Metal Beryl
Forum Members
Forum Members
Posts: 69
Joined: Wed Apr 18, 2007 9:57 am

IE 6 menu problem, anyone help? [Solved]

Post by Metal Beryl »

Hello,

I've got my menu working in IE7 and Firefox but cant seem to get it working in IE6 anyone know how to solve the problem?

http://www.blackboxmerseyside.co.uk/index.php?page=home

CSS is...


#menuwrapper {
  /* Fix for Opera 8 */
  /*  overflow: hidden;  */
 
}

#primary-nav, #primary-nav ul {
  list-style: none;
  margin: 0px;
  padding: 0px;
  float:left:
}
#primary-nav ul {
  position: absolute;
  top: auto;
  display: none;
}

#primary-nav li {
  margin-left: 20px;
  float: left;
  width:98px;
  height:144px;
}

#primary-nav li a {
display: block;
text-decoration: none;
text-align: left;
letter-spacing: normal;
color: #FFFFFF;
font-family: "Trebuchet MS" Arial, Helvetica, sans-serif;
font-size: 1em;
font-weight: bold;
padding-right: 5px;
padding-bottom: 0px;
padding-left: 5px;
        padding-top: 100px;
        line-height: 120%;
}

#primary-nav li, #primary-nav li.menuparent {
}


#primary-nav li.menuactive {
}

#primary-nav li li.menuparent:hover {

}

#primary-nav ul li.menuparent,
#primary-nav ul li.menuparent:hover,
#primary-nav ul li.menuparenth,  {
background: #008730 url(uploads/images/overtab.jpg) repeat-x;
color: #FFFFFF;
        border: 1px solid #666666;
        width:98px;
        height:144px;

}


#primary-nav li:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
background: #008730 url(uploads/images/overtab.jpg) repeat-x;
        border: 1px solid #666666;
color: #FFFFFF;
        width:98px;
        height:144px;
}
Last edited by Metal Beryl on Fri Jan 11, 2008 9:40 am, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: IE 6 menu problem, anyone help?

Post by KO »

Javascript adds letter "h" to you li class name when hovering over. So if you have .redtab it will be .redtabh when hovering over.

Make sure your CSS corresponds to that.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: IE 6 menu problem, anyone help?

Post by Dr.CSS »

Since you are not using any second level menu items you may want to put the class on the a instead of the li then you could get rid of the IE JS...

IE understands the a:hover not li:hover...
Post Reply

Return to “Layout and Design (CSS & HTML)”