Archived

This topic is now archived and is closed to further replies.

  • 0

NavBar dropdown CSS Hover Color impossible to Change


Question

Posted · Report post

Hi,
I'm desperately tryin to change the hover color of the dropdown menu ( background color & image)
 
Even if it works on firebug, when i paste the css in the style.css of my pagelines customize plugin, nothing changes !??? Never seen something like this before...could you help please ?
 
Thank you very much
 
original code :
 
.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a, .dropdown-menu li.current-menu-item > a {
    background-color#0081C2;
    background-image-moz-linear-gradient(center top , #0088CC, #0077B3);
    background-repeatrepeat-x;
    color#FFFFFF;
    text-decorationnone;
}

 

new code :

 
.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a, .dropdown-menu li.current-menu-item > a {
    background-color#333333;
    background-image-moz-linear-gradient(center top , #333333, #000000);
    background-repeatrepeat-x;
    color#FFFFFF;
    text-decorationnone;
}

 

my web is www.mrtripper.com

 

Share this post


Link to post
Share on other sites

4 answers to this question

Posted · Report post

You're code is correct, I've just pasted it into my site and I get the blue/black gradient.

 

Try pasting it into the custom code box in Pagelines>site options>custom code to see if it works there like mine did. If it does then it might be some of the code above in your style.css of the customise plugin, if there's any errors in the code it will stop any of the css below from being read properly. So check for closing brackets at the end of each section etc.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, the background image is supplied as a gradient, so will user broswer specific code for each browser. Make sure you include the different versions so the changes can be seen in each.
 
http://css-tricks.com/css3-gradients/

 

Also you might need to use an override if using the customise plugin, either #page or #site. See the overrides section at - http://support.pagelines.me/docs/customization/custom-css/

 

Share this post


Link to post
Share on other sites

Posted · Report post

Hi James,

 

1. i use the same gradient code as yours which works perfectly on my Firefox browser in "your" blue #0088CC but not in "my" black !???

2. I tried the overrides as well as !important in the plugin but nothing works :-(

Share this post


Link to post
Share on other sites

Posted · Report post

Ok It works, there's certainly an error in my latest css ! Thank you very much

Share this post


Link to post
Share on other sites