Hi :) Do you know how to do this please?
I want the Parent of the active menu black. I've used CSS
#sticky_navigation ul li.active a { background:#333; }
Your text to link here...
but this also changes the color of the
.dropdown-menu
Which I want keep "background:#FFF" white.
Do you know how I can do this please?
Many Thanks and Best Regards Charles
.nav > li a { background: #333; }
I THINK you could do it with
.dropdown-menu li a { background:white; }
Yup, it is another solution as well.
Either you apply the background to the main list only and not to the dropdown menues. Or you apply it to every list items and fix it on dropdowns.
#sticky_navigation ul li.active > a { background:#333; }
So it only applies only to the a element that is a direct child of the active list item.
This selector is getting heavy. You may reduce it: #sticky_navigation .active > a.
#sticky_navigation .active > a
Thank you very much for your help Hugo
Hi Hugo Would you please help?
I've changed the link color
ul.dropdown-menu li.active a { #DAA520 !important; background#fff; }
But the background on the active link is still black.
[http://virtuemarttemplate.com/demo/VM01/index.php/layout/2-column-left]"Page Link")
Many Thanks for your help and time
Best Regards Charles
It's not just a typo? background#fff; should be background:#fff;
Also since you have been using !imporant it might be overridden by the '#sticky_navigation .active > a background: #333 !important;' property.
The problem is when I remove the !important Then I lose the background color on both the parent and the submenu
Many Thanks for your help
It's ok I've fixed it Thanks!
Hi :) Do you know how to do this please?
I want the Parent of the active menu black. I've used CSS
Your text to link here...
but this also changes the color of the
.dropdown-menu
Which I want keep "background:#FFF" white.
Do you know how I can do this please?
Many Thanks and Best Regards Charles
I THINK you could do it with
Yup, it is another solution as well.
Either you apply the background to the main list only and not to the dropdown menues. Or you apply it to every list items and fix it on dropdowns.
So it only applies only to the a element that is a direct child of the active list item.
This selector is getting heavy. You may reduce it:
#sticky_navigation .active > a.Thank you very much for your help Hugo
Hi Hugo Would you please help?
I've changed the link color
ul.dropdown-menu li.active a { #DAA520 !important; background#fff; }
But the background on the active link is still black.
[http://virtuemarttemplate.com/demo/VM01/index.php/layout/2-column-left]"Page Link")
Many Thanks for your help and time
Best Regards Charles
It's not just a typo? background#fff; should be background:#fff;
Also since you have been using !imporant it might be overridden by the '#sticky_navigation .active > a background: #333 !important;' property.
The problem is when I remove the !important Then I lose the background color on both the parent and the submenu
Many Thanks for your help
It's ok I've fixed it Thanks!