IE 7 - CSSMenu jumping fix

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
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

IE 7 - CSSMenu jumping fix

Post by Greg »

The default code

Code: Select all

<!--[if IE]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
<!-- The above JavaScript is required for CSSMenu to work in IE -->
Confuses :hover in IE 7 and causes the menu links to shift when there is a sub-menu

The default needs to be changed to

Code: Select all

<!--[if lte IE 6]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
<!-- The above JavaScript is required for CSSMenu to work in IE -->
Greg
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: IE 7 - CSSMenu jumping fix

Post by Dr.CSS »

Thought it was already set that way, guess it's just the min-max IE fix that has that.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: IE 7 - CSSMenu jumping fix

Post by carasmo »

This didn't fix it for me. What I did to fix this is the following:

Remove:

  min-height:1em; /* Fixes IE7 whitespace bug*/


from the #primary-nav a styles

and add this before the close of the literal tag in the template:

Code: Select all

<!--[if IE 7]>
<style>
#primary-nav a{zoom:100%!important;}
#primary-nav li{float:left;clear:both;width:100%;}
</style><![endif]-->


And also do as instructed in the first of this thread:

Code: Select all

<!--[if lte IE 6]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
<!-- The above JavaScript is required for CSSMenu to work in IE -->
kristy_lb
Forum Members
Forum Members
Posts: 18
Joined: Wed Oct 21, 2009 10:44 pm

Re: IE 7 - CSSMenu jumping fix

Post by kristy_lb »

Thank you carasmo!! That worked perfectly for me.
Post Reply

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