I am in the process of building a bootstrap website and facing an issue with the collapsible navigation bar. The nav toggle button is always visible, but I want it to only appear when the nav bar goes to a medium size. How can I achieve this?
The code snippet is as follows:
enter code here
</!DOCTYPE html>
<html>
<head>
<title>Bootstrap Website</title>
<link rel="stylesheet" href="css/styles.css" type="text/css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
</script>
<!--mobile first -->
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div style="background-color: black;">
<nav class="navbar navbar-expand-md bg-dark navbar-dark">
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsenavbar">
<span class="navbar-toggler-icon" style="background-color: black"></span>
</button>
<div class="collapse navbar-collapse text-center" id="collapsenavbar">
<ul class="nav navbar-nav">
<li class="nav-item">
<a href="" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="" class="nav-link">The New Laws</a>
</li>
<li class="nav-item">
<a href="" class="nav-link">Get Qualified</a>
</li>
<li class="nav-item">
<a href="" class="nav-link">What Is Record Suspension</a>
</li>
<li class="nav-item">
<a href="" class="nav-link">Why Do I Need A Waiver</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
</body>
</html>