Struggling to make the bootstrap 4 responsive top nav appear over my container div, but can't find a solution.
This is how the Top nav should function:
W3Schools editor
Here is my code on jsfiddle:
jsfiddle
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
/* Add a black background color to the top navigation */
.topnav {
background-color: #333;
overflow: hidden;
}
/* Style the links inside the navigation bar */
.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
/* Add an active class to highlight the current page */
...
... [Truncated for brevity] ...
...
</h2>
<p class="text-muted">Completed Jobs YTD</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="jumbotron text-center">
<h1>Any problems let me know.</h1>
</div>
</div>
</div>
</div>
</div>
I'm sure I've missed something simple.
Cheers,