title: Dropdown menu showing sub menus horizontally instead of vertical
body: <p>I need help with the following, any help would be great. I'm sure it's simple just been looking at it too long probably </p>
  
  <p>Dropdown menu showing sub menus horizontally instead of vertical plus the sub menu background stays there.</p>
  
  <p><strong>Code:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    font-family: arial, sans-serif;
  }
  * {
    padding: 0px;
    margin: 0px;
  }
  #Header {
    width: 100%;
    height: 100vh;
    background: url(images/glasgow.jpg);
    background-size: cover;
  }
  /*Top Logo*/
  
  #Logo {
    width: 115px;
    height: auto;
    float: left;
    margin: 15px;
    cursor: pointer;
  }
  /*Navigation ul*/
  
  #NavBar ul {
    width: 100%;
    height: 100px;
    background: #6563af;
    line-height: 100px;
  }
  /*Navigation li*/
  
  #NavBar ul li {
    list-style-type: none;
    display: inline;
    float: right;
  }
  /*Navigation a*/
  
  #NavBar ul li a {
    color: white;
    text-decoration: none;
    padding: 20px;
  }
  /*Navigation li HOVER*/
  
  #NavBar ul li:hover {
    background: #8269e0;
    transition: all 0.40s;
  }
  #NavBar ul li ul li {
    display: none;
  }
  #NavBar ul li:hover ul li {
    display: inline;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
    &lt;div id="MainContainer"&gt;
      &lt;!--Start of MainContainer--&gt;
  
      &lt;div id="Header"&gt;
        &lt;!--Start of Header--&gt;
  
        &lt;div&gt;
          &lt;img id="Logo" src="images/logo.png"&gt;
        &lt;/div&gt;
  
        &lt;div id="NavBar"&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;a href="#"&gt;Item 5&lt;/a&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Item 4&lt;/a&gt;
              &lt;ul&gt;
                &lt;li&gt;&lt;a href="#"&gt;Sub 1&lt;/a&gt;
                &lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;Sub 2&lt;/a&gt;
                &lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;Sub 3&lt;/a&gt;
                &lt;/li&gt;
              &lt;/ul&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Item 3&lt;/a&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Item 2&lt;/a&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Item 1&lt;/a&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
  
      &lt;/div&gt;
      &lt;!--End of Header--&gt;
  
  
  
  
    &lt;/div&gt;
    &lt;!--End of MainContainer--&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>