I have implemented a navigation bar using Bootstrap. I utilized .bg-danger
to include a red background color. However, the links in the navbar are displaying blue instead of black as expected with the use of .navbar-light
. How can I prevent the links from appearing in blue font?
Below is the HTML code for the navbar:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js" integrity="sha384-a5N7Y/aK3qNeh15eJKGWxsqtnX/wWdSZSKp+81YjTmS15nvnvxKHuzaWwXHDli+4" crossorigin="anonymous"></script>
<nav class="nav navbar-expand-md bg-danger navbar-light nav-tabs sticky-top justify-content-center">
<a class="nav-link" href='/home/'>Home</a>
<a class="nav-link" href='/feed/'>Newsfeed</a>
<a class="nav-link" href='/profiles/'>View Candidates</a>
<a class="nav-link" href='/register/'>Register</a>
<a class="nav-link" href='/elections/'>Elections</a>
</nav>