While this layout functions properly on the majority of modern browsers thanks to bootstrap's responsiveness, issues arise when testing on older browsers.
https://i.sstatic.net/e7qDT.png
The problem seems to stem from the wide element extending beyond the body. However, why does the navbar not expand to fill the full width?
Here is a fiddle. "All jsfiddle links must be accompanied by relevant code":
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="/">The Navbar</a>
</nav>
<div></div>
body {
background-color: red;
}
div {
display: inline-block;
height: 20px;
background-color:green;
width: 3000px;
}