I am currently working on a Bootstrap Navbar design where I want it to appear as a hamburger for the entire window, except when it reaches around 700px in width. At that point, I need it to display all the navigation drop-downs without stacking. The issue arises when the window shrinks to about 400px - the 'home' button and 'hamburger' icon shift closer to the middle of the navbar and do not drop down properly. I have attempted to use pull-left and pull-right classes for each element, but they remain static. This is the structure of my navbar:
https://i.sstatic.net/FHBgN.png
https://i.sstatic.net/59WMb.png
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<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="index.html">Home</a>
</div>
These are the CSS rules applied:
@media (max-width: 1200px) {
.navbar-collapse.collapse {
display: none !important;
}
.navbar-collapse.collapse.in {
display: block !important;
}
.navbar-header .collapse, .navbar-toggle {
display:block !important;
}
.navbar-header {
float:none;
}