Pesky IE7 hurts my dropdown navigation

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
scotch33
Dev Team Member
Dev Team Member
Posts: 284
Joined: Tue Feb 14, 2006 9:56 pm

Pesky IE7 hurts my dropdown navigation

Post by scotch33 »

Hi,

One of the sites that I look after - www.linkcare.net has the CSS dropdown running on it.  However in IE7 it is not working correctly.  If anyone can point me in the correct direction on this, I would appreciate it.

The css I am using is as follows

Code: Select all

/* Vertical menu for the CMS CSS Menu Module */
/* by Alexander Endresen */


/* The wrapper determines the width of the menu elements */

#menuwrapper { 
        position: absolute;
        left: 10px;
        top: opx;
	width: 140px; 
	}


/* Unless you know what you do, do not touch this */ 

#primary-nav, #primary-nav ul { 
	list-style: none; 
	margin: 0px; 
	padding: 0px; 
	width: 100%; 
        margin-left: -1px;
	}
#primary-nav ul { 
	position: absolute; 
	top: 0; 
	left: 100%; 
	display: none; 
	}
#primary-nav li { 
        margin-bottom: 5px; 
	position: relative; 
        }

#primary-nav li li{ 
        margin-bottom: 0px; 
        }


/* Styling the basic apperance of the menu elements */

#primary-nav a, #primary-nav a :link, #primary-nav a :visited { 
	border: 1px solid blue; 
	display: block; 
	margin: 0px; 
	padding: 3px 20px 3px 0px; 
	text-decoration: none; 
        color: white;
        font-weight: bold;
        font-style: italic;
	}
#primary-nav li, #primary-nav li.menuparent { 
	background-color: #000065; 
        color: white;
        text-align: right;
	}


/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */

#primary-nav li.menuactive { 
	background-color: #820F01; 
	}


/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */

#primary-nav li.menuparent, #primary-nav li.menuparent:hover, #primary-nav li.menuparenth { 
	background-image: url(modules/MenuManager/images/arrow.gif); 
	background-position: center right; 
	background-repeat: no-repeat; 
	}


/* Styling the apperance of menu items on hover */

#primary-nav li:hover, #primary-nav li.menuh, #primary-nav li.menuparenth, #primary-nav li.menuactiveh { 
	background-color: blue; 
	}

/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */

#primary-nav ul, #primary-nav li:hover ul, #primary-nav li:hover ul ul, 
#primary-nav li.menuparenth ul, #primary-nav li.menuparenth ul ul { 
	display: none; 
	}
#primary-nav li:hover ul, #primary-nav ul li:hover ul, #primary-nav ul ul li:hover ul, 
#primary-nav li.menuparenth ul, #primary-nav ul li.menuparenth ul, #primary-nav ul ul li.menuparenth ul { 
	display: block; 
	}


/* IE Hack, will cause the css to not validate */

#primary-nav li, #primary-nav li.menuparenth { _float: left; _height: 1%; }
#primary-nav li a { _height: 1%; }
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Pesky IE7 hurts my dropdown navigation

Post by RonnyK »

In the following reply is a post for the fix in the vertical menu, this is however arranged in the template and not in the css for the menu..

http://forum.cmsmadesimple.org/index.php/topic,9521.msg48346.html#msg48346

Ronny
Post Reply

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