I have a list item with an anchor tag inside.
I want to add the hover pseudo selector to a list item and therefore the anchor tag inside it.
My goal is to change the colour of the anchor tag text when hovering over the list item.
li:hover{
background-color: #000;
color:#fff;
width: 60px;
color:#fff;
}
<li>
<a href="#">one</a>
</li>
It dosn't seem to work though, what am I doing wrong here?