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

 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 a{color:#000000;}

and set the html thus:

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