I've been struggling to change the color of my Bootstrap 4 navbar
, but for some reason, it's not working. I've tried various approaches, but none seem to be effective.
Below is the snippet of code for my navbar
along with its CSS styling:
<nav class="navbar navbar-light bg-faded">
<div class="nav navbar-nav">
<a class="nav-item nav-link active" href="#">HearthBreak <span class="sr-only">(current)</span></a>
<a class="nav-item nav-link" href="#">Features</a>
<a class="nav-item nav-link" href="#">Pricing</a>
<a class="nav-item nav-link" href="#">About</a>
</div>
</nav>
.navbar{
background-color: #252830;
.nav-item, .nav-link{
color: #FFF;
}
}
Although I can modify the NavItem, I am unsure which specific child element needs to be targeted for the desired changes.