title: Horizontal and vertical bootstrap navbars not working correctly
body: <p>I tried including two bootstrap menus, one vertical and one horizontal in my webpage, but the layout was destroyed. Is there any solution for this? 
  This is my horizontal menu code:</p>
  
  <pre><code>&lt;html lang="en"&gt;&lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
  
      &lt;!-- Bootstrap core CSS --&gt;
      &lt;link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
  
      &lt;!-- Fixed navbar --&gt;
      &lt;div class="navbar navbar-default 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-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="home.php"&gt;Company&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="navbar-collapse collapse"&gt;
            &lt;ul class="nav navbar-nav"&gt;
              &lt;li class="active"&gt;&lt;a href="home.php"&gt;&lt;i class="glyphicon glyphicon-home"&gt;&lt;/i&gt;&lt;span&gt;&amp;nbsp;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="order.php"&gt;&lt;i class="glyphicon glyphicon-pencil"&gt;&lt;/i&gt;&lt;span&gt;&amp;nbsp;Order&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="cart.php"&gt;&lt;i class="glyphicon glyphicon-shopping-cart"&gt;&lt;/i&gt;&lt;span&gt;&amp;nbsp;Cart&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="contactus.php"&gt;&lt;i class="glyphicon glyphicon-earphone"&gt;&lt;/i&gt;&lt;span&gt;&amp;nbsp;Contact Us&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="about.php"&gt;&lt;i class="glyphicon glyphicon-search"&gt;&lt;/i&gt;&lt;span&gt;&amp;nbsp;About Us&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
            &lt;ul class="nav navbar-nav navbar-right"&gt;
              &lt;li&gt;&lt;a href="register.php"&gt;&lt;i class="glyphicon glyphicon-registration-mark"&gt;&lt;/i&gt;&lt;span&gt;&amp;nbsp;Register&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="active"&gt;&lt;a href="login.php"&gt;&lt;i class="glyphicon glyphicon-user"&gt;&lt;/i&gt;&lt;span&gt;&amp;nbsp;Login&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  
  
      &lt;!-- Bootstrap core JavaScript
      ================================================== --&gt;
      &lt;!-- Placed at the end of the document so the pages load faster --&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="bootstrap/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and this is my vertical menu code.</p>
  
  <pre><code>&lt;html lang="en"&gt;&lt;head&gt;
          &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt; 
          &lt;meta charset="utf-8"&gt;
          &lt;meta name="generator" content="Bootply"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"&gt;
          &lt;link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"&gt;
  
          &lt;!-- CSS code from Bootply.com editor --&gt;
  
          &lt;style type="text/css"&gt;
              @media (min-width: 768px) {
    .navbar-collapse {
      height: auto;
      border-top: 0;
      box-shadow: none;
      max-height: none;
      padding-left:0;
      padding-right:0;
    }
    .navbar-collapse.collapse {
      display: block !important;
      width: auto !important;
      padding-bottom: 0;
      overflow: visible !important;
    }
    .navbar-collapse.in {
      overflow-x: visible;
    }
  
  .navbar
  {
      max-width:200px;
      margin-right: 0;
      margin-left: 0;
      margin-top:200px;
  }   
  
  .navbar-nav,
  .navbar-nav &gt; li,
  .navbar-left,
  .navbar-right,
  .navbar-header
  {float:none !important;}
  
  .navbar-right .dropdown-menu {left:0;right:auto;}
  .navbar-collapse .navbar-nav.navbar-right:last-child {
      margin-right: 0;
      margin-top:200;
  }
  }
          &lt;/style&gt;
      &lt;/head&gt;
  
      &lt;!-- HTML code from Bootply.com editor --&gt;
  
      &lt;body&gt;
  
  &lt;nav class="navbar navbar-default" role="navigation"&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="active"&gt;&lt;a href="breads.php"&gt;Breads&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="cupcakes.php"&gt;Cupcakes&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="pies.php"&gt;Pies&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="pastas.php"&gt;Pastas&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="desserts.php"&gt;Desserts&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="caters.php"&gt;Caters&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt;
  &lt;/nav&gt;
  
  
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>And then I want to include it here.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Categories - Breads&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;?php include_once("hor_menu.php");?&gt;   
  &lt;?php include_once("vert_menu.php");?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is it possible to include both files without destroying the layout?</p>