Jump to content
Sign in to follow this  
ilkka

How to change nav current page bg color?

Recommended Posts

ilkka

I was able to change nav current page text color with the code below (found from another post), but the background color property won't affect the background color for some reason. How can I change the nav current page background color? Here is the code i used: How to change the current menu item background/text color. /* CSS FOR CURRENT PAGE MENU ITEM */ .main-nav li.current-page-ancestor a, .main-nav li.current_page_item a, .main-nav li.current-page-ancestor ul a, .main-nav li.current_page_item ul a.sf-menu li li { background-color: #FF0000; color: #FFFFFF; }

Share this post


Link to post
Share on other sites
Kate
Hey There, You can use this code: [code].main_nav ul li.current_page_item a{background:red;}[/code] But, of course, make sure you change "red" to the color/image you want ;)

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  

×