I am facing a problem with the two navigation menus on my website. Both menus are of the same type and are built using Bootstrap. The first navigation menu uses the “navbar-inverse” class, while the second one uses the “navbar-default” class with some slight modifications. The issue arises when clicking on the dropdown menu in the right corner; the second navigation menu ends up overlapping the dropdown box, making only the content below the menu visible.
For a visual representation of this issue, please refer to the attachment provided below.
Here is how my HTML is currently structured:
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<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>
<a class="navbar-brand" href="#"><span class="glyphicon glyphicon-home"></span></a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
...
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Settings <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
...
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div id="navbar">
<ul class="nav navbar-nav">
...
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
This is a visual demonstration of the current issue:
In order to further analyze and troubleshoot the problem, I have created a JSfiddle with all the relevant stylesheets and frameworks included: http://jsfiddle.net/1L3voL3h/. Unfortunately, despite my efforts, I have not been able to find a solution on my own. Any assistance would be greatly appreciated. Thank you in advance.