Is this style activated with this CSS?

nav ul li a:hover{color:#000000;} nav ul li a:active{color:#000000;} nav ul li .active a{color:#000000;}

1 answer

0
points
 nav ul li .active a{color:#000000;}

looks wrong

for the color on the link to work it would need to be wrapped in an element with class="active" other than the li.

We need to see html and css together, one wthout the other is nonsense.

but at a guess try:

 nav ul li.active a{color:#000000;}

and set the html thus:

<li class="active"><a href="#">active link</a>
Answered over 5 years ago by Tony Crockford