title: Bootstrap Navbar collapse not working properly
body: <p><img src="https://i.stack.imgur.com/lVFIs.png" alt="enter image description here"></p>
  
  <p>I'm using twitter bootstrap on my site and when I collapse the window partially, this happens!
  If I collapse the window further, then the desired button appears and the links disappear. </p>
  
  <p><strong>Q) Why is this happening? I want the nav links to collapse at this window width, leaving the button.  Nav code below:</strong></p>
  
  <pre><code>&lt;nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"&gt;
  &lt;div class="container"&gt;
      &lt;div class="navbar-header"&gt;
          &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"&gt;
              &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&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;a class="navbar-brand" href="/" style="font-size: 24px;"&gt;My brand name&lt;/a&gt;
      &lt;/div&gt;
  
      &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
      &lt;div class="collapse navbar-collapse navbar-ex1-collapse"&gt;
          &lt;ul class="nav navbar-nav"&gt;
              &lt;li class="&lt;%= GetCssClassNavItemHome() %&gt;"&gt;&lt;a href="/"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li class="&lt;%= GetCssClassNavItem("/about") %&gt;"&gt;&lt;a href="/about"&gt;About&lt;/a&gt;&lt;/li&gt;                
              &lt;li class="&lt;%= GetCssClassNavItem("/services") %&gt;"&gt;&lt;a href="/services"&gt;Services&lt;/a&gt;&lt;/li&gt;
              &lt;li class="&lt;%= GetCssClassNavItem("/project") %&gt;"&gt;&lt;a href="/projects"&gt;Projects&lt;/a&gt;&lt;/li&gt;
              &lt;li class="&lt;%= GetCssClassNavItem("/prices") %&gt;"&gt;&lt;a href="/prices"&gt;Prices&lt;/a&gt;&lt;/li&gt;
              &lt;li class="&lt;%= GetCssClassNavItem("/blog") %&gt;"&gt;&lt;a href="/blog"&gt;Blog&lt;/a&gt;&lt;/li&gt;
              &lt;li class="&lt;%= GetCssClassNavItem("/contact") %&gt;"&gt;&lt;a href="/contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;ul class="nav navbar-nav navbar-right nav-pills"&gt;
              &lt;li&gt;                     
                  &lt;a target="_blank" href="http://www.linkedin.com/"&gt;
                      &lt;i class="fa fa-linkedin fa-2x"&gt;&lt;/i&gt;
                  &lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;!-- /.navbar-collapse --&gt;
  &lt;/div&gt;
  &lt;!-- /.container --&gt;
  </code></pre>
  
  <p></p>