Having a problem with the ddsmoothmenu with IE. Works fine in Firefox and chrome. But the whole page jumps down when you hover over the menu and the actual menu doesn't display in IE. PLEASE HELP!
}
* html .ddsmoothmenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
}
.ddsmoothmenu ul li a:link, .ddsmoothmenu ul li a:visited{
/*color: white;*/
color:#000;
}
.ddsmoothmenu ul li a.selected{ /*CSS class that's dynamically added to the currently active menu items' LI A element*/
color:#000;
background: #f4f4f4;
background: -moz-linear-gradient(top, #f4f4f4 0%, #e8e8e8 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f4f4), color-stop(100%,#e8e8e8));
background: -webkit-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: -o-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: -ms-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
filter: progidXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#e8e8e8',GradientType=0 );
-moz-box-shadow: 0px 0px 6px 0px #737373;
-webkit-box-shadow: 0px 0px 6px 0px #737373;
box-shadow: 0px 0px 6px 0px #737373;
}
.ddsmoothmenu ul li a#hoveractive{ /*CSS class that's dynamically added to the currently active menu items' LI A element*/
color:#000;
background: #f4f4f4;
background: -moz-linear-gradient(top, #f4f4f4 0%, #e8e8e8 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f4f4), color-stop(100%,#e8e8e8));
background: -webkit-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: -o-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: -ms-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
filter: progidXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#e8e8e8',GradientType=0 );
-moz-box-shadow: 0px 0px 6px 0px #737373;
-webkit-box-shadow: 0px 0px 6px 0px #737373;
box-shadow: 0px 0px 6px 0px #737373;
}
.ddsmoothmenu ul li a:hover{
color:#000;
background: #f4f4f4;
background: -moz-linear-gradient(top, #f4f4f4 0%, #e8e8e8 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f4f4), color-stop(100%,#e8e8e8));
background: -webkit-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: -o-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: -ms-linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
background: linear-gradient(top, #f4f4f4 0%,#e8e8e8 100%);
filter: progidXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#e8e8e8',GradientType=0 );
-moz-box-shadow: 0px 0px 6px 0px #737373;
-webkit-box-shadow: 0px 0px 6px 0px #737373;
box-shadow: 0px 0px 6px 0px #737373;
}
/*1st sub level menu*/
.ddsmoothmenu ul li ul{
position: absolute;
left: 0;
display: none; /*collapse all sub menus to begin with*/
visibility: hidden;
overflow:hidden;
}
/*Sub level menu list items (undo style from Top level List Items)*/
.ddsmoothmenu ul li ul li{
display: list-item;
float: none;
}
/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.ddsmoothmenu ul li ul li ul{
top: 0;
}
/* Sub level menu links style */
.ddsmoothmenu ul li ul li a{
font: normal 12px Arial, Helvetica, sans-serif;
width: 166px; /*width of sub menus*/
padding:5px;
margin: 0;
border-top-width: 0;
border-bottom: 1px solid #c3c3c3;
background:#f4f4f4;
text-transform:none;
height:auto;
}
/* Holly Hack for IE \*/
* html .ddsmoothmenu{height: 1%;} /*Holly Hack for IE7 and below*/
Never heard of ddsmoothmenu, but it looks like your normal fat bloated jquery animooted nonsense, taking something simple -- a dropdown menu, and turning it into a convoluted mess. I mean, when a 4 parent item demo menu page is sucking down in excess of 60k before it even has content on the page -- it's a bad way to build a website.
My advice would be to go throw out all that scripting for nothing, and go with a more CSS based approach...
Which even with the scripting assist for browsers that don't know all the new fangled CSS ends up barely hitting 3.2k...
Cutesy slider effects that just make the UI harder to use because they take too blasted long, AND that suck down tens or even hundreds of K of bandwidth by the time you let them piss all over project is no way to build a website.
No matter what the "jquery for everything" whackjobs will try to tell you.
Bookmarks