Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] Can't get submenu background color right (http://forum.bytesforall.com/showthread.php?t=14757)

tsheridan Jun 23, 2011 08:32 PM

[SOLVED] Can't get submenu background color right
 
In the CSS inserts, I've set the background color of the menu to transparent because otherwise the background color interferes with the header image.
My problem is that when that is set to transparent I can't set the background color of the submenu. It's defaulting to white & I want it the grey color that's behind the menu.

The URL is www.mountainhcs.net.

Even setting the border to 0 around the menu (in the ATO) doesn't get rid of the color that's covering up the header image, so I just can't find the right combination of things to get it right.

Here's what I have in the snippets:

/* ================================================ */
/* Page Menu item */
/* ================================================ */
ul.rMenu li a:link,
ul.rMenu li a:visited,
ul.rMenu li a:hover,
ul.rMenu li a:active,
ul.rMenu li {
background: transparent !important;
padding-right: 15px;
}

div#menu1 ul.rMenu li a:link {font-weight: bold;}
div#menu1 ul.rMenu li a:hover {font-weight: bold;}
div#menu1 ul.rMenu li a:visited {font-weight: bold;}
div#menu1 ul.rMenu li a:active {font-weight: bold;}

Thank you!

lmilesw Jun 23, 2011 10:04 PM

Here is some code that should get you started.
HTML Code:

.sub-menu {
    background: #ddd !important;
}
.sub-menu a:hover {
    color: #000 !important;
}
.sub-menu a:link {
    color: #fff !important;
}


tsheridan Jun 24, 2011 08:05 AM

Awesome, worked perfectly, thank you!!


All times are GMT -6. The time now is 09:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.