Active Navigation. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Active Navigation.

I want to create a navigation bar with the current link having a different color from other links. I have tried the css pseudo class :active, it's not working.

25th Feb 2020, 7:04 PM
Marvellous Abia
Marvellous Abia - avatar
3 Answers
0
Yo tambien tengo la misma duda!!! help me
25th Feb 2020, 7:59 PM
Marielena Garcia
Marielena Garcia - avatar
0
Marvellous Abia ,hello How did you used it?
25th Feb 2020, 11:17 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
set the class for all links, for example: nav-list__item, and add the nav-list__item – active modifier to the active link. and set a different style for this class
25th Feb 2020, 11:25 PM
Stanislav
Stanislav - avatar