Navigation Menu Hover Colour And Font Colour

Been at this for over an hour and still cant get it too change, if i use inspector on google chrome i can change the font colour but not the navigation hover colour, however in the .less files i cant seem to get this to work, please help because this for a business website and i want to get everything right on it before changing the domain over to weebly.

This is the CSS i am looking at 

#navigation {
padding-bottom: 40px;
width: 960px;
margin: auto;
text-align: center;
text-transform: uppercase;
overflow: hidden;
font-family: 'Raleway', sans-serif;
font-size: 13px;
}
#navigation a{
display:inline-block;
padding:10px 14px;
}

#navigation ul:before,
#navigation ul:after {
background-color: #ec7956;
content: "";
display: inline-block;
height: 1px;
bottom: .1em;
position: relative;
vertical-align: middle;
width: 50%;
}

body.full-width-off #navigation ul:before,
body.full-width-off #navigation ul:after {
display: none;
}

#navigation ul:before {
right: 29px;
margin-left: -50%;
}

#navigation ul:after {
left: 29px;
margin-right: -50%;
}

#navigation li {
display: inline-block;
}

#navigation li:hover,
#navigation li#active {
background-color: @navBackgroundHover;
color: @navHover;
}

#navigation a {
color: inherit;
}

.wsite-menu{
list-style-type:none;
margin-left:25px;
}

#wsite-menus .wsite-menu li a {
background-color: @navBackgroundHover;
border: none;
color: @navHover;
}

#wsite-menus .wsite-menu li a:hover {
background-color: @subnavBackgroundHover;
color: teal;
}

.wsite-menu-arrow {
font-size: 0;
margin-left: 10px;
}

.wsite-menu-arrow:before {
display: inline-block;
content: '\203A';
vertical-align: bottom;
font-size: 20px;

14,362 Views
Message 1 of 58
Report
1 Best Answer

Best Answer

Is that because you're on the contact page? Try going to different page on your live site. It looks like it's working well from my end. The current (active) menu item is highlighted differently. This code below is your code and lastly the fix for the current page:

#pg708113044337784445 { color: #7878b3 !important; }
 #pg932504617318792230 { color: #b4d28a !important; }
 #pg783536887777639527 { color: #ec7956 !important; }
 #pg578086755529608994 { color: #ffe351 !important; }
 #pg367509705682534309 { color: #e85d89 !important; }
 
 #pg708113044337784445 a:hover { color: #7878b3 !important; background: red !important; }
 #pg932504617318792230 a:hover { color: #b4d28a !important; background: pink !important; }
 #pg783536887777639527 a:hover { color: #ec7956 !important; background: green !important; }
 #pg578086755529608994 a:hover { color: #ffe351 !important; background: orange !important; }
 #pg367509705682534309 a:hover { color: #e85d89 !important; background: blue !important; }
 
 #navigation a:hover { color:beige !important; background: brown !important; }
 li#active a { background: red !important; color: gold !important; }

Cheers,

Mark

View Best Answer >

9,363 Views
Message 59 of 58
Report
57 REPLIES 57

Hey there! Just to be sure everyone is on the same page, can you go over the specific color alterations you'd like to see?

8,354 Views
Message 59 of 58
Report

I want to change the font colour in the navigation menu, I also want to change the hover colour, so when I put my mouse over a navigation link on the menu, a square light grey box shows up,I want to change this box to another colour as well as possibly change to different colours for different menu options,if it help I can post screen shots in the morning
8,352 Views
Message 59 of 58
Report

Hi @MollieBobbins,

Are you able to provide your web site address? It's easier to help that way.

Thank you, Mark

8,348 Views
Message 59 of 58
Report

Hi

This is the site address

http://molliebobbins.weebly.com/

I am trying to get as much done as i can before transferring the domain over

8,320 Views
Message 59 of 58
Report

Hi @MollieBobbins,

I've got your individual menu items to be different colours:

image

Drop this CSS at the end of your main CSS file:

li#active a {
    background: #f6f6f6 !important;
    color: coral !important;
}
#pg360199396916322670 { /*entrance*/
    color: blue !important;
}
#pg708113044337784445 { /*home*/
    color: red !important;
}
#pg932504617318792230 { /*shop*/
    color: green !important;
}
#pg783536887777639527 { /*about*/
    color: pink !important;
}
#pg578086755529608994 { /*updates*/
    color: orange !important;
}
#pg367509705682534309 { /*contact*/
    color: purple !important;
}

I'm working on the hover...

Let me know how you go with the above. It seems to work on desktop and mobile with no problems at my end.

Regards,

Mark

8,316 Views
Message 59 of 58
Report

Thats brilliant, now will the values work if i change them to hex colour values

8,313 Views
Message 59 of 58
Report

Yes, @MollieBobbins. I just chose random colours that went along the idea of your design theme, not exact though! 

Glad it worked! Still going on the hover - it should be easy but...

8,310 Views
Message 59 of 58
Report

So just as a test i changed on the of the colours, the one that is attached to entrance, change it to #7878b3,

No dice, no change in colour still showing as red

8,306 Views
Message 59 of 58
Report

wait ignore that, it has changed

8,305 Views
Message 59 of 58
Report

And here's the hover change, @MollieBobbins:

#navigation a:hover {
   background: #cedced !important;
}

Once again - just a random colour but you can change it to whatever you want.

Cheers,

Mark

2,133 Views
Message 59 of 58
Report

brilliant ill stick that at the end of the css again,

Now this question will be the last,

What if i wanted every active tab and active hover colour to be different, is this possible within the realms of css

2,132 Views
Message 59 of 58
Report

Also 

I have put this at the end of the css and its not working, im getting good with this but i must be missing something 

#navigation a:hover {
background: #ffe351 !important;
}

2,128 Views
Message 59 of 58
Report

Yes certainly - those big long numbers that I gave you are particular to each menu item on your website.

If you add the a:hover code to another copy of them you can set a different set of hover combinations.e.g.:

#pg367509705682534309 a:hover { /*contact*/
    color: white !important;
    background: coral !important;
}

That will make the contact item white text and coral background only on hover. 

You seem to have a pretty good grasp of colours that you want so I won't list them all but that's the solution.

2,127 Views
Message 59 of 58
Report

}
li#active a {
    background: #f6f6f6 !important;
    color: #000000 !important;
}
#pg360199396916322670 { /*entrance*/
    color: #7878b3 !important;
}
#pg708113044337784445 { /*home*/
    color: red !important;
}
#pg932504617318792230 { /*shop*/
    color: green !important;
}
#pg783536887777639527 { /*about*/
    color: pink !important;
}
#pg578086755529608994 { /*updates*/
    color: orange !important;
}
#pg367509705682534309 { /*contact*/
    color: purple !important;

#pg367509705682534309 a:hover { /*contact*/
    color: #e85d89 !important;
    background: coral !important;
}

Right ok, so i have tried as suggested, now above is what my code looks like at the moment, i have a feeling i am doing something wrong

2,123 Views
Message 59 of 58
Report

I can't see the last line in your CSS - did you save/publish?

It works when I add it to my Chrome Inspect

2,121 Views
Message 59 of 58
Report

that ios the last line of my css, the bracket is the last line on there 

image

2,118 Views
Message 59 of 58
Report

Oops - you've got the code in the last line doubled

image

2,117 Views
Message 59 of 58
Report

ok so how do i fix it, sorry im not seeing it at the moment

2,114 Views
Message 59 of 58
Report

You've pasted inside a }

2,113 Views
Message 59 of 58
Report

you need a } between the last two lines of command and remove the extra one

1,058 Views
Message 59 of 58
Report