title: "position: fixed" ruins the dropdown menu in CSS webpage
body: <p>I am creating a webpage in which when I hover over the <code>.Soccer</code> section, it will dropdown and show Link1, Link2, Link3. </p>
  
  <p>Without the <code>position: fixed;</code>, the code works perfectly fine. 
  As I want the heading in top of the webpage, I put <code>position: fixed;</code></p>
  
  <p>But as soon as I put that on, the dropdown button for "Soccer" does not work. </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>html {
    background-image: url("Images/BackgroundImageI.jpg");
    background-repeat: no-repeat;
  }
  
  body {
    background-color: White;
    color: Black;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 40%;
    margin-bottom: 0%;
    border: 10px outset Gray;
  }
  
  h1 {
    font-family: Arial, Verdana, Geneva, sans-serrif;
    color: teal;
    text-align: center;
  }
  
  p {
    font-family: Arial, Verdana, Geneva, sans-serrif, serrif;
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    line-height: 24px;
  }
  
  ul {
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 0%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    background-color: #333;
    position: fixed;
    /* Removing this makes the dropdown work */
  }
  
  li {
    float: left;
  }
  
  li a,
  .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  li a:hover,
  .Soccer:hover .dropbtn {
    background-color: teal;
  }
  
  li.Soccer {
    display: inline-block;
  }
  
  .Soccer-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  .Soccer-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .Soccer-content a:hover {
    background-color: teal
  }
  
  .Soccer:hover .Soccer-content {
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;Test&lt;/title&gt;
    &lt;link rel="stylesheet" href="testeditor.css" type="text/css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="brokenlink.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#brokenlink.html"&gt;News&lt;/a&gt;&lt;/li&gt;
      &lt;li class="Soccer"&gt;
        &lt;a href="javascript:void(0)" class="dropbtn"&gt;Soccer&lt;/a&gt;
        &lt;div class="Soccer-content"&gt;
          &lt;a href="#"&gt;Link 1&lt;/a&gt;
          &lt;a href="#"&gt;Link 2&lt;/a&gt;
          &lt;a href="#"&gt;Link 3&lt;/a&gt;
        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  
    &lt;h3&gt;Soccer Menu inside a Navigation Bar&lt;/h3&gt;
    &lt;p&gt;Hover over the "Soccer" link to see the Soccer menu.&lt;/p&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Please ask me if you do not understand the concept of what I am trying to do. And if you do understand, please help me. </p>
  
  <p>This is my first post so it might be a bit off compared to other posts. </p>