PDA

View Full Version : Trouble in IE6 with Smooth Navigational Menu



kbreen
11-24-2009, 04:15 AM
1) Script Title: Smooth Navigational Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm

3) Describe problem:
Can't get the script to test out in IE6 correctly. I have customized the CSS to some degree but can't figure out why it isn't working anymore. Any direction would be GREATLY appreciated!

The site is available to view live at:
www.flockeavoyer.com/Root

Here is my Smooth Nav CSS:

.ddsmoothmenu{
z-index:10;
font: bold 12px verdana;
background: #284972; /*background of menu bar (default state)*/
width: 960px;
}

.ddsmoothmenu ul{
z-index:10;
margin: 0;
padding: 0;
list-style-type: none;
}

/*Top level list items*/
.ddsmoothmenu ul li{
z-index:10;
position: relative;
display: inline;
float: left;
height: 23px;
width: 192px;
}

/*Top level menu link items style*/
.ddsmoothmenu ul li a{
z-index:10;
display: block;
background: #284972; /*background of menu items (default state)*/
color: white;
padding: 0px;
color: #335E91;
text-decoration: none;
text-align: center;
height: 23px;
vertical-align: middle;
border-top: 1px solid #335E91;
border-right: 1px solid #335E91;
}

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

.ddsmoothmenu ul li a:link, .ddsmoothmenu ul li a:visited{
z-index:10;
color: white;
}

.ddsmoothmenu ul li a.selected{ /*CSS class that's dynamically added to the currently active menu items' LI A element*/
z-index:10;
color: white;
background-color: #335E91;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}

.ddsmoothmenu ul li a:hover{
z-index:10;
color: white;
background-color: #335E91;
}

/*1st sub level menu*/
.ddsmoothmenu ul li ul{
z-index:10;
position: absolute;
left: 0;
display: none; /*collapse all sub menus to begin with*/
visibility: hidden;
}

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

/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.ddsmoothmenu ul li ul li ul{
z-index:10;
top: 0;
}

/* Sub level menu links style */
.ddsmoothmenu ul li ul li a{
z-index:10;
font: bold 11px Verdana;
width: 189px; /*width of sub menus*/
padding: 5px 0px 5px 3px;
margin: 0;
border-top-width: 0;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #999;
height: 15px;
text-align:left;
}

.ddsmoothmenu ul li ul li a.ddsmoothmenu2{
z-index:10;
background-color:#932127;
font: bold 11px Verdana;
width: 189px; /*width of sub menus*/
padding: 5px 0px 5px 3px;
margin: 0;
border-top-width: 0;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #999;
height: 15px;
text-align:left;
}

.ddsmoothmenu ul li a.ddsmoothmenu2:hover{
z-index:10;
color: white;
background-color: #335E91;
}

/* Holly Hack for IE \*/
* html .ddsmoothmenu{height: 1%;} /*Holly Hack for IE7 and below*/


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

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

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

/* ######### CSS for shadow added to sub menus ######### */

.ddshadow{
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
background:none;
}

.toplevelshadow{ /*shadow opacity. Doesn't work in IE*/
opacity: 0.1;
}