PDA

View Full Version : In IE 7 only My menu CSS has problems



allencunningham
02-24-2010, 04:43 AM
1) Script Title: sidebar menu

2) Script URL (on DD):
/* Menu Code */
/* http://www.dynamicdrive.com/style/ */

.sidebarmenu ul{
margin: 0;
padding: 0;
list-style-type: none;
font: bold 13px Verdana;
width: 180px; /* Main Menu Item widths */
border-bottom: 1px solid #ccc;
}

.sidebarmenu ul li{
position: relative;
}

/* Top level menu links style */
.sidebarmenu ul li a{
display: block;
overflow: auto; /*force hasLayout in IE7 */
color: #4C3327;
text-decoration: none;
padding: 3px;
border-bottom: 1px solid #778;
border-right: 1px solid #778;
}

.sidebarmenu ul li a:link, .sidebarmenu ul li a:visited, .sidebarmenu ul li a:active{
background-color: #CDC2B1; /*background of tabs (default state)*/
}

.sidebarmenu ul li a:visited{
color: #4C3327;
}

.sidebarmenu ul li a:hover{
background-color: #999999;
}

/*Sub level menu items */
.sidebarmenu ul li ul{
position: absolute;
width: 170px; /*Sub Menu Items width */
top: 0;
visibility: hidden;
}

.sidebarmenu a.subfolderstyle{
background: url(right.gif) no-repeat 97% 50%;
}


/* Holly Hack for IE \*/
* html .sidebarmenu ul li { float: left; height: 1%; }
* html .sidebarmenu ul li a { height: 1%; }
/* End */

3) Describe problem: in IE 7 the subitems in the menu disappear if you don't scroll just right. Not a problem in FF or Chrome

See at: http://www.awesome-art.biz/awesome/aadefault.asp

ddadmin
02-24-2010, 10:38 AM
Please see: http://www.dynamicdrive.com/forums/showthread.php?t=52627