Change color of main menu ...just the mainbuttons

Demonstrate your product attractively using clean and distinctive coffe shop Joomla template.
GK User
Mon Feb 25, 2013 6:33 pm
Hello everyone,

I have tried to change the color of the mainbuttons of the menu by doing a css override ...

Code: Select all
div.gk-menu ul > li a, div#gkDropMain ul > li a{
background: #009640;
color: #ffffff;
}


This works jut fine, except it also changes the background color of the submenu items. They now look ugly on the grey background. What i hope for is the mainbuttons 'green' and the sub menu items with white textcolor on a grey background .... i think making the submenu background transparant should do the trick. But how can i do this?
User avatar
Senior Boarder

Konrad M
Tue Feb 26, 2013 1:09 pm
Hi,
please give us url to your website. It will be much easier to help you.
User avatar

GK User
Tue Feb 26, 2013 10:17 pm
The testsite is at this url.
User avatar
Senior Boarder

Konrad M
Wed Feb 27, 2013 4:17 pm
Please add this code to override.css under your code:
Code: Select all
#gkMenu ul.level0 > li > div.childcontent a {
background:none !important;
}
User avatar

GK User
Wed Feb 27, 2013 7:53 pm
Thanks, that was the solution :)

Problem solved!
User avatar
Senior Boarder


cron