Jump to content
Sign in to follow this  
designpoint

Drop down list background color

Recommended Posts

designpoint    0
designpoint

Hi,

 

I am trying to change the background colour of the droplist background to a lighter shade of grey:

 

test.propertywealthadvisors.com.au

 

I have the below code:

 

 

#brandnav .main-nav ul a:hover, .main-nav ul.current_page_item > a, .main-nav ul.current-page-ancestor > a {
    background-color: #FFFFFF;
}

 

Still doesn't work, is there anything im missing?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

Unfortunately, we are unable to provide you the custom CSS needed to achieve your layout. However, I can tell you that the code you have above is incorrect. The reason this is incorrect, is the current page etc... classes only work for the auto created menu by Wordpress. If you have created your own menu, then you need to use the current menu classes instead.

 

http://codex.wordpress.org/Function_Reference/wp_nav_menu#Menu_Item_CSS_Classes

 

I recommend using Google Chrome web dev tools and inspect the BrandNav ul to find the correct code. If you're new to Chrome, I highly recommend taking this quick and free course from Code School. As it will assist you in learning the basics for Google Chrome web dev tools.

 

http://discover-devtools.codeschool.com/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×