title: bootstrap navbar collapse with scroll bar
body: <p>I am currently using the css code bellow to collapse the navbar at 930px. The code works nicely except for one thing, it doesn't add the scroll bar for more navigation links. How can I add the scroll bar so that the last navigation links only appear when you scroll within the dropdown list? Note that the scroll bar is there for xs screens but not there for screens between 930 and 768 px.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;!-- Navbar --&gt;
  &lt;nav class="navbar navbar-default navbar-fixed-top"&gt;
      &lt;div class="container-fluid"&gt;
          &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#topFixedNavbar1" aria-expanded="false"&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="#services"&gt;Brand&lt;/a&gt;
          &lt;/div&gt;
          &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
          &lt;div class="collapse navbar-collapse" id="topFixedNavbar1"&gt;
              &lt;ul class="nav navbar-nav navbar-right"&gt;
                  &lt;li&gt;&lt;a href="#carousel1"&gt;Welcome&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#services"&gt;Services&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#portfolio"&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#pricing"&gt;Pricing&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#team-members"&gt;Team&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt;
      &lt;/div&gt;&lt;!-- /.container-fluid --&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>/*
      Collapse Navbar between 930px and 768px
  */
  @media (min-width: 768px) and (max-width: 930px) {
      .navbar-nav .open .dropdown-menu {
          position: static;
          float: none;
          width: auto;
          margin-top: 0;
          background-color: transparent;
          border: 0;
          -webkit-box-shadow: none;
          box-shadow: none;
      }
      .navbar-nav .open .dropdown-menu &gt; li &gt; a {
          line-height: 20px;
      }
      .navbar-nav .open .dropdown-menu &gt; li &gt; a,
      .navbar-nav .open .dropdown-menu .dropdown-header {
          padding: 5px 15px 5px 25px;
      }
      .dropdown-menu &gt; li &gt; a {
          display: block;
          padding: 3px 20px;
          clear: both;
          font-weight: normal;
          line-height: 1.42857143;
          color: #333;
          white-space: nowrap;
      }
      .navbar-header {
          float: none;
      }
      .navbar-toggle {
          display: block;
      }
      .navbar-collapse {
          border-top: 1px solid transparent;
          box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
      }
      .navbar-collapse.collapse {
          display: none!important;
      }
      .navbar-nav {
          float: none!important;
          /*margin: 7.5px -15px;*/
          margin: 7.5px 50px 7.5px -15px
      }
      .navbar-nav&gt;li {
          float: none;
      }
      .navbar-nav&gt;li&gt;a {
          padding-top: 10px;
          padding-bottom: 10px;
      }
      .navbar-text {
          float: none;
          margin: 15px 0;
      }
      /* since 3.1.0 */
      .navbar-collapse.collapse.in { 
          display: block!important;
      }
      .collapsing {
          overflow: hidden!important;
      }
  }
  </code></pre>
  
  <p><a href="https://jsfiddle.net/jusdtggL/" rel="nofollow">Example fiddle</a></p>