Experiencing a minor issue here. I am attempting to create a layout with a navigation positioned in the top right corner, and the main content contained within a separate container below it.
The problem I am facing is that the content container seems to be appearing inside the navigation bar instead of below it. I have reviewed my code multiple times but cannot seem to identify where the error lies. Here is the code snippet:
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="misc"><a href="../navbar/">About</a></li>
<li class="misc"><a href="../navbar/">Servo</a></li>
<li class="misc"><a href="../navbar/">Spindle</a></li>
<li class="misc"><a href="../navbar/">Contact Us</a></li>
<li class="misc small"><a href="#"><span class="glyphicon glyphicon-search" aria-hidden="true" style="font-size:20px;"></span></a></li>
<li class="misc small"></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container-fluid">
CONTENT
</div>
You can also view the JS Fiddle for reference:
Upon inspection, it appears that the content is being incorrectly nested within the navbar. Any insights on how to resolve this issue would be greatly appreciated!