I recently noticed an issue with my website, which is built using Bootstrap. The problem arises when users scroll down the page and encounter the fixed navigation menu.
It appears that the menu items and logo are no longer contained within the designated container with a maximum width of 800px. As a result, the logo is positioned on the far left of the screen while the menu items are pushed to the far right, creating an odd appearance especially on wider screens.
I want the menu items and logo to maintain their position within the container both in the initial static menu and the fixed menu, similar to how it is displayed on this example website.
Does anyone have suggestions on how I can resolve this issue?
Please refer to this link for examples of the initial and scrolled positions:
Initial Position:
https://i.sstatic.net/1MaUM.png After Scrolling Down:
https://i.sstatic.net/3rXrJ.png
<div id="nav" class="container-fluid">
<nav class="navbar-classic">
<li><a href="index.html" class="active">Who are we? </a>
<ul class="dropdown">
<li><a href="#">Sub 1</a></li>
<li><a href="#">Sub 2</a></li>
</ul>
</li>
<li><a href="#">Services Services Services</a>
</li>
</nav>
<a href="#" class=""><img alt="" src="http://placehold.it/220x70" class=""></a>
</div>