1 reply [Last post]
zerowinglad
zerowinglad's picture
Offline
newbie
USA
Last seen: 7 years 12 weeks ago
USA
Timezone: GMT-4
Joined: 2015-09-03
Posts: 1
Points: 2

Hello

I'm using wordpress and I'd like to change the main menus active link font color with css, because the default setting setting isn't working.

I'm using this code:

#main-nav li a:hover {
  color: #ffffff;
}

To change the hover color, and I can't imagine the active link color would be too much different. Can someone please help me out? I'd sincerely appreciate any assistance I can get

Thannk you for your time
Peter

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 3 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Hi Peter, You can see how to

Hi Peter,
You can see how to use active here:
https://csscreator.com/content/active

The order is important :active needs to come after :hover and before :visited.