title: How to fix dropdown not working condition
body: <p>I am trying to create a vertical drop-down menu using HTML and CSS but my drop-down is not working. I would like to know where i am going wrong.
  I have tried every thing but i am just not getting where i am going wrong </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>#sidenav {
    margin-top: 2.5rem;
    display: none;
    flex-direction: column;
    width: 200px;
    height: 100%;
    max-width: 200px;
    box-sizing: border-box;
    background: #454545;
    font-size: 18px;
    overflow-y: scroll;
    overflow-x: hidden;
    position: fixed;
  }
  
  #sidenav input,
  #sidenav li,
  #sidenav {
    box-sizing: border-box;
  }
  
  .dropdown-bt {
    position: relative;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
  }
  
  .dropdown-bt:hover .dropdown-content {
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section id='sidenav'&gt;
    &lt;input type="text" placeholder="search..." id='mysearch' onkeyup="filterSearch()"&gt;
    &lt;li&gt;&lt;a href="#"&gt;Item 1&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Item 2&lt;/a&gt;&lt;/li&gt;
    &lt;li class="dropdown-bt"&gt;&lt;a href="#"&gt;Dropdown&lt;/a&gt;
      &lt;div class="dropdown-content" style="display:none;"&gt;
        &lt;li&gt;&lt;a href="#"&gt;-test 1&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;-test 2&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;-test 3&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;-test 4&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;-test 5&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;-test 6&lt;/a&gt;&lt;/li&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Item 7&lt;/a&gt;&lt;/li&gt;
  
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>