Jump to content
Sign in to follow this  
drogowski

How to CSS menu item home when it's active status?

Recommended Posts

drogowski

I have a website: www.flandria.pl First menu item is START. I changed 'hover' status and it's work. How to change 'active' status? Classes: .menu-item-home, li:active don't bring results.

Share this post


Link to post
Share on other sites
Kate

Here's the line of code:

.main_nav #menu-item-230.current-menu-item a{background:url("images/start.png") no-repeat scroll 12px 9px !important;}

Also: a common mistake is to put the color last (eg: "transparent" at the end of your line of code)... But, you should put this just before the word "url", with a space in between ;) In this case it actually wasn't necessary to have at all...

Share this post


Link to post
Share on other sites
drogowski

Scrolling wasn't necessary in this case but it's works! :) Thank you very much.

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  

×