0

Links in Bootstrap

I want to change the link color(Home) when I am on that page and so on for other links. <ul class="nav navbar-nav"> <li class="nav-item" role="presentation"> <a class="nav-link" href="index.html">Home</a> </li> </ul>

29th Sep 2019, 7:50 AM
harshit
harshit - avatar
3 Answers
+ 2
.nav-item .nav-link{ color: #f00 !important; }
29th Sep 2019, 7:53 AM
Jaydeep Khatri
Jaydeep Khatri - avatar
0
Jaydeep Khatri it is not working. The new color is applied to all links before even I am clicking them. You can check the code here https://code.sololearn.com/WpX7nYUdhlaC/?ref=app
29th Sep 2019, 12:16 PM
harshit
harshit - avatar