Jump to content
Sign in to follow this  
johnmindala

Nav Menu Color

Recommended Posts

johnmindala

I'm simply trying to change the font color on the hover for the main menu. I figured it would be in here: #primary-nav .main-nav li a:hover { font-weight:lighter; background-color: #152841; } Hover elements successfully change, but when I add: color: #FFF; the textcolor continues to remain gray. My website is here: <http://beta.kimisishamptons.org/>

Share this post


Link to post
Share on other sites
bonngean

I'm assuming it remains grey because you have the font=weight set to lighter. I used:

#primary-nav .main-nav li a:hover {
	font-weight:bold;
	color: #FFF;
	background-color: #FFC140;
	}

And it changed the hover color to white.

Share this post


Link to post
Share on other sites
bonngean

Oops... if you use my code, don't forget to change your background color back to:

	#primary-nav .main-nav li a:hover {
	font-weight:bold;
	color: #FFF;
	background-color: #152841;
	

Share this post


Link to post
Share on other sites
johnmindala

Thanks Bonnie, but no luck. I stripped in your code, text attributes change to "bold" and the hover state changes to "yellow", but the font color wants to remain gray. Just not sure the what the problem is. Something else in my site is throwing this one attribute off.

Share this post


Link to post
Share on other sites
kastelic

Are you putting this is Custom Code -> Custom CSS? Also try adding 'body' the front of the rule.

Share this post


Link to post
Share on other sites
Gavin_

It worked for me The only thing i needed to change was to add a closing bracket } Thanks

Share this post


Link to post
Share on other sites
johnmindala

Thanks Jimmy!!! Adding 'body' before #primary-nav .main-nav li a:hover worked!!!

Share this post


Link to post
Share on other sites
tbk4568

I have tried all of the above to change the color of my primary nav and nothing is working. I currently have in custom CSS part of platform pro: body#primary-nav ul.main-nav { background-color: none; color: #5e185e; } What am I doing wrong?

Share this post


Link to post
Share on other sites
timlinson

When you try Bonnie's code with Jimmy's `body` hint, make sure there's a space after `body`.

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  

×