title: Bootstrap 3 Dropdown sub menu not working
body: <p>Sub menu block is always visible even before the hover. Unable to understand what is missing:-</p>
  
  <pre><code>**HTML**
  
  &lt;li class="dropdown"&gt;
            &lt;a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="#"&gt;
              Menu 
            &lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Item1&lt;/a&gt;&lt;/li&gt;
              &lt;li class="dropdown-submenu"&gt;
                  &lt;a href="#"&gt;Item2&lt;/a&gt;
                  &lt;ul class="dropdown-menu" &gt;
                      &lt;li&gt;
                          &lt;a href="#"&gt;Item2.1&lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                          &lt;a href="#"&gt;Item2.2&lt;/a&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>    /* dropdown sub menu support for Bootsrap 3 */
  .dropdown-submenu {
    position: relative;
  }
  
  .dropdown-submenu &gt; .dropdown-menu {
    top: 5px;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
  }
  
  .dropdown-submenu:hover &gt; .dropdown-menu {
    display: block;
  }
  </code></pre>
  
  <p>When I hover the main menu submenu block of dropdown is always visible ?</p>
  
  <pre><code>.dropup .dropdown-submenu &gt; .dropdown-menu {
    top: auto;
    bottom: 0;
    margin-top: 0;
    margin-bottom: -2px;
  }
  
  .dropdown-submenu &gt; a:after {
    position: absolute;
    display: inline-block;
    font-size: 14px;
    right: 7px;
    top: 7px;
    font-family: FontAwesome;
    height: auto;
    content: "\f105";
    font-weight: 300;
  }
  
  .dropdown-submenu:hover &gt; a:after {
    border-left-color: #ffffff;
  }
  
  .dropdown-submenu.pull-left {
    float: none;
  }
  
  .dropdown-submenu.pull-left &gt; .dropdown-menu {
    left: -100%;
    margin-left: 10px;
  }
  </code></pre>
  
  <p>I am using a metronic theme and have included its all possible style sheets. </p>