title: Any idea why my nav bar will not collapse in a small window?
body: <p>I have created a nav bar, and styled it my way. However, when I make the window small, and click in the right corner on the button, the nav bar extends all the options and that's it. Once I click on one of the options, it will not close i.e. it will not collapse back. What am I doing wrong? Ive been exploring with this for a while now and cannot see the mistake.</p>
  
  <p><strong>Here is my code:</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;!-- use a responsive image option so this logo looks good on devices - recommend using something like retina.js --&gt;
          &lt;a class="navbar-brand" href="#/"&gt;Test&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 navbar-right"&gt;
              &lt;li&gt;&lt;a href="#/home"&gt;Home&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#/about"&gt;About Us&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#/services"&gt;What We Do&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#/example"&gt;Examples&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#/testimonials"&gt;Testimonials&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#/contact"&gt;Contact Us&lt;/a&gt;
              &lt;/li&gt;  
          &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>In my index.html, I link to the header.html which works fine, and the following styles:</p>
  
  <pre><code>  &lt;link rel="stylesheet" href="css/bootstrap.min.css"&gt;
    &lt;link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"&gt;
  </code></pre>
  
  <p><strong>And the javascript:</strong> </p>
  
  <pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"&gt; &lt;/script&gt;
  &lt;script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
  </code></pre>