You have to use a pseudo selector to apply the styling when you hover the cursor.
So, you can use element:action (or something like this). One way you could do this is by using this selector: nav > ul > li:hover then apply the style you want with the cursor property pointer, like cursor: pointer;
I hope I was of some assistance! God bless you!
Edit: you have to use the nav > ul > li:hover because you may have other li elements and you want to style a specific one.
cusor: pointer;
color: #1b1b32;
background-color: #dfdfe2;
}```
Still getting this error message. You should give hovered li elements a background-color of #dfdfe2 which I think that I did...?
not sure where I went wrong...
li > a {
color: inherit;
text-decoration: none;
background-color: #dfdfe2;
}
nav > ul > li:hover {
color: #1b1b32;
cursor: pointer;
}```
This is what I have now. I'm still getting the same error message.
Where did you find the instruction to add the ‘background-color’ property to the anchor elements?
When you hover over the li elements (it is a new selector: nav > ul > li:hover), their ‘background-color’ property value should change to the value of ‘color’ property found in the selector nav > ul > li, and ‘color’ property’s value should change to the value of ‘background-color’ property of the ‘header’ selector (found almost at the top of your css file) .