Hover not working


#1

Hi,

I would like to put a hover effet on my menu, but it does not work…
I tried this :
#mainnav li:hover{
color:black;}

…but everything is very new for me…

My website : www.bijouxmaison.fr

Thanks for your help !


#2

Hi,

The hover color for the menu elements is part of the color scheme. If you want to change it individually, this is what you need:


#mainnav ul li a:hover {
    color: #000 !important;
}


#3

great thanks vlad


#4

I see that it works, but maybe you should change it that it is not red, like the background of the nav :wink:

In generell the !important says, that this part of code is more prioritised than another setting you or the developer made.