title: Responsive Bootstrap Navbar
body: <p>I am trying to make a Navbar for my site that has a dropdown menu on the left, image in the center, and collapsable item on the right. I am using bootstrap with less to style the navbar, but I am having trouble.</p>
  
  <p>I have searched Stack overflow looking for ways to make this work, like <a href="https://stackoverflow.com/questions/19733447/bootstrap-navbar-with-left-center-and-right-aligned-items">this</a> question, but the solutions there aren't working for me. I can't seem to get my image to line up so that its horizontal axis is centered with the dropdown menu, collapsable item, and navbar container. When I try the solutions like in the previously mentioned link, taking the image out of the flow of the page by maxing its position fixed, it always appears below the navigation bar. I can fix this for my screen by messing with the CSS attributes, but as soon as I resize the window things look awful.</p>
  
  <p>Is there a way (possibly using less) to style the bootstrap navbar so that no matter what the size of the window is, I have an item on the left, image in center, and item on the right, all sharing a common horizontal center axis with the navbar? </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Okay, so I have changed my mind and decided to just add some links on the left, an image in the center still, and some links on the right. When the screen gets smaller, I want the links to collapse to the right offering a toggle button for a menu. The collapsing is working fine, but when the links are on the screen I want them to be horizontally centered in the nav bar, along with the image. The image right now is partially in the nav bar and partially out. I also want the image to slide to the left when the links collapse at smaller screen sizes. Here is my code right now:</p>
  
  <p>Just a note that I am using django to serve the html, hence the syntax for the image src.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#logo-with-slogan {
    max-width: 35%;
    padding: 3% 0 3% 0;
  }
  
  .navbar-brand {
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    margin: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav class="navbar navbar-default" role="navigation"&gt;
    &lt;div class="navbar-header"&gt;
      &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
    &lt;/div&gt;
    &lt;a class="navbar-brand" href="#"&gt;
      &lt;img id="logo-with-slogan" src="{% static " img/LogoWslogan.jpg " %}" /&gt;
    &lt;/a&gt;
    &lt;div class="navbar-collapse collapse"&gt;
      &lt;ul class="nav navbar-nav navbar-left"&gt;
        &lt;li&gt;&lt;a href="#itemonelink"&gt;Item One&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#itemtwolink"&gt;Item Two&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul class="nav navbar-nav navbar-right"&gt;
        &lt;li&gt;&lt;a href="#signuplink"&gt;Signup&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#loginlink"&gt;Login&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>