title: Bootstrap with Main Left Navbar causes content nav menu to have same vertical size
body: <p>I have a Bootstrap based site with a navbar vertically aligned on the left of the screen. On some of the pages I want the page content to have its own nav menu place horizontally across the top of its own content.</p>
  
  <p><strong>Problem:</strong> My problem is that using bootstrap classes for both navigation menus, the horizontal nav menu in the content area has the same height as the main vertical navigation menu. This pushes all the content not only below the content's nav menu, but below the much taller main navigation menu - when the content should be beside the main menu!</p>
  
  <p><strong>Question:</strong>
  How do I get the content's nav menu to vertically size for its own content so the content area's full content will flow beside the main navigation menu?</p>
  
  <p>Using the [F12] developer tools in IE, FireFox, and Chrome, I cannot see any reason why the heights of both navigation menus is synchronized, and thus I can find no why to break that synchronization.</p>
  
  <p>The problem is replicable on JSFiddle: <a href="https://jsfiddle.net/zazm460q/2/" rel="nofollow">https://jsfiddle.net/zazm460q/2/</a>
  <em>(I am developing for desktop apps, you may have to widen the <code>Result</code> pane to see the desktop layout rather than the mobile layout.)</em></p>
  
  <p>Here is some simplified HTML showing the problem:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="navbar navbar-inverse nabvar-static-top"&gt;
    &lt;div class="navbar-brand"&gt;
      &lt;a href="#"&gt;My App Logo&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;nav class="navbar-left navbar-inverse"&gt;
    &lt;ul class="nav nav-pill nav-stacked" id="main-nav"&gt;
      &lt;li class="panel"&gt;
        &lt;a href="#" data-toggle="collapse" data-target="#a" data-parent="#main-nav"&gt;menu item a&lt;/a&gt;
        &lt;ul id="a" class="nav nav-pills nav-stacked collapse in"&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;a.1&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;a.2&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;a.3&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li class="panel"&gt;
        &lt;a href="#" data-toggle="collapse" data-target="#a" data-parent="#main-nav"&gt;menu item b&lt;/a&gt;
        &lt;ul id="b" class="nav nav-pills nav-stacked collapse"&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;b.1&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;b.2&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;b.3&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li class="panel"&gt;
        &lt;a href="#" data-toggle="collapse" data-target="#a" data-parent="#main-nav"&gt;menu item c&lt;/a&gt;
        &lt;ul id="c" class="nav nav-pills nav-stacked collapse"&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;c.1&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;c.2&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;c.3&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li class="panel"&gt;
        &lt;a href="#" data-toggle="collapse" data-target="#a" data-parent="#main-nav"&gt;menu item d&lt;/a&gt;
        &lt;ul id="d" class="nav nav-pills nav-stacked collapse"&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;d.1&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;d.2&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;d.3&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li class="panel"&gt;
        &lt;a href="#" data-toggle="collapse" data-target="#a" data-parent="#main-nav"&gt;menu item e&lt;/a&gt;
        &lt;ul id="e" class="nav nav-pills nav-stacked collapse"&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;e.1&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;e.2&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;e.3&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/nav&gt;
  &lt;div id="body-content"&gt;
    &lt;div class="container"&gt;
      &lt;nav class="navbar-inner"&gt;
        &lt;ul class="nav nav-tabs"&gt;
          &lt;li&gt;&lt;a data-toggle="tab" href="#tab-a"&gt;Tab A&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a data-toggle="tab" href="#tab-b"&gt;Tab B&lt;/a&gt;&lt;/li&gt;
          &lt;li class="active"&gt;&lt;a data-toggle="tab" href="#tab-c"&gt;Tab C&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a data-toggle="tab" href="#tab-d"&gt;Tab D&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/nav&gt;
      &lt;div class="tab-content"&gt;
        &lt;div class="tab-pane" id="tab-a"&gt;Tab-A Content Here
          &lt;p&gt;
            AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA
          &lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="tab-pane" id="tab-b"&gt;
          &lt;h1&gt;Tab-B Content Here&lt;/h1&gt;
          &lt;p&gt;
            BBBBBBBBBBBBBB BBBBBBBBBB BBBBBBBBBBB BBBBBBBBB
          &lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="tab-pane active" id="tab-c"&gt;
          &lt;h2&gt;Tab-C Content Here&lt;/h2&gt;
          &lt;p&gt;
            cccccc ccccccCCCCCCC CCCCCcccccc cccCCCCCCCCC CCCCCCCCcccc cccccc
          &lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="tab-pane" id="tab-d"&gt;
          &lt;h3&gt;Tab-D Content Here&lt;/h3&gt;
          &lt;p&gt;
            DDDDDDDDDDD ddddddddddddd DDDDDDDDDDDDD ddddddddddd DDDDDDDDddd
          &lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;footer&gt;My App&lt;/footer&gt;
  </code></pre>
  
  <p>And also some simplified CSS:</p>
  
  <pre class="lang-css prettyprint-override"><code>nav.navbar-left {
    width: 140px;
  }
  
  #body-content {
    margin-left: 150px;
  }
  
  footer {
    width: 100%;
    text-align: center;
  }
  </code></pre>