Issue
I am new to bootstrap, I am trying out different things and when I add the classes to different elements some work, and others dont show up in dev tools. The class on the ul works, but on the li and 'a' doesnt. `
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link-active" href="">About Us</a>
</li>
`
I tried to restart the project and reconnect bootstrap but neither solution worked.
Solution
It's because you put an extra -
between nav-link
and active
class. The correct way is this one <a class="nav-link active" href="#">About Us</a>
Answered By - Rafiul Islam Rafi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.