Hey all,
Couple of questions about this CSS dropdown Menu.
I've got installed and working pretty solidly, just a few small issues that I'd like to try and work out.
I'm using ZenCart 1.3.8a
The 3 issues I'd like resolved are:
1. When I mouse over a drop down menu (any of them) and then roll my mouse down over the Categories that drop down, the 'hover' image (with the 2 black ends lit up pink) of the menu changes back to the regular black version. I would like it so that as long as that menu is open and I'm navigating through it the original menu title stays highlighted with the pink ends.
2. I've been trying to figure out a way to set a background image only for Categories which contain sub categories within them. I was able to add a border to the following property:
div#dropMenu li.submenu li.submenu {}
and that created a border around only the items which opened up into a subcategory listing.
3. The subcategories that open up (for example, go to Categories > Lingerie) have a white border dividing them, as opposed to the black border that divides the original category listing, I'd like them to match.
Here is a link to the site for you to take a look at:
(Warning, the site is a lingerie based company, so there will be somewhat explicit images)
http://test.alexasroom.ca
And the following is my current stylesheet_header_menu.css:
Code:
body {
behavior: url(includes/csshover.htc);
}
/*green
div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover {color: #4f4f4f!important;background:#D5E88F;}
*/
/*blue
div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover, div#dropMenu ul.level2 a:hover {color: #ffffff!important;background:#6C99D9;}
*/
/*red */
div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover, div#dropMenu ul.level2 a:hover {color: #ffffff!important;background: url(../images/button4down.png) 95% 50% no-repeat;}
/*grey
div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover, div#dropMenu ul.level2 a:hover {color: #4f4f4f!important;background:#D5D5D5;}
*/
/*div#dropMenu ul.level1 li:hover {
background-image:url(../images/button4down.gif);
background-position: top center;
background-repeat: no-repeat;
}
div#dropMenu ul.level1 li:hover ul.level2 li:hover {
background:none;
} */
div#dropMenu {
width:100%;
margin:0 auto;
text-align:center;
z-index:1000;
position:relative;
}
div#dropMenu ul {
margin:0;
padding:0;
}
div#dropMenu li {
position:relative;
list-style:none;
margin:0;
float:left;
line-height:1em;
width:16.667%;
*width:16.649%;
}
div#dropMenu ul.level1 {
width:100%;
margin:0 auto;
text-align:center;
background:#494949; /*background color of top menu when NOT selected. */
z-index:1000;
float:left;
}
div#dropMenu li a {
display: block;
/* Hides from IE5-mac \*/
height: 1%;
/* End hide from IE5-mac */
padding: 0.6em 0;
text-decoration: none;
text-transform:uppercase;
color:#ffffff;
text-align:center;
/*border-right:1px solid #FF00C0; */
background: url(../images/button4.png) 95% 50% no-repeat;
}
div#dropMenu li:hover {background: url(../images/button4down.png) 95% 50% no-repeat;}
div#dropMenu li.submenu {}
div#dropMenu li.submenu:hover {}
div#dropMenu li a.noLine {border:none;}
div#dropMenu>ul a {width: auto;z-index:1000;}
div#dropMenu ul ul {display: none;}
div#dropMenu ul ul li {border-bottom: solid 2px; border-left: solid 2px; border-right: solid 2px; width:100%;z-index:1000;}
div#dropMenu li.submenu li.submenu {}
div#dropMenu ul.level1 li.submenu:hover ul.level2,
div#dropMenu ul.level2 li.submenu:hover ul.level3,
div#dropMenu ul.level3 li.submenu:hover ul.level4,
div#dropMenu ul.level4 li.submenu:hover ul.level5,
div#dropMenu ul.level5 li.submenu:hover ul.level6,
div#dropMenu ul.level6 li.submenu:hover ul.level7,
div#dropMenu ul.level7 li.submenu:hover ul.level8 {position: absolute; width: 130px;display:block;z-index:1000;}
div#dropMenu ul.level2 {background: #4f4f4f;z-index:1000;position:absolute;left:5;}
div#dropMenu ul.level3,
div#dropMenu ul.level4,
div#dropMenu ul.level5,
div#dropMenu ul.level6,
div#dropMenu ul.level7,
div#dropMenu ul.level8{top: 0; left: 130px; background: #4f4f4f;}
div#dropMenu ul.level2 a {padding: 0.5em 0 0.5em 0.25em;color: #FFFFFF; text-transform:none; background: #FA00BC;} /* this is text color on drop-down submenu */
div#dropMenu ul.level2 a:hover {color:#4f4f4f; background: #FF6699;}
.clearBoth {
clear:both;
height:0;
font-size:0;
line-height:0;
}
Thanks for any help,
Cheers,
Ravyn
Bookmarks