title: Button on submenu in nav
body: <p>I want to add dropdown to my current nav bar. I tried this code but dropdown content disappeared and now I don´t have any ideas to edit code to this be working. After my last edit it´s only show dropdown menu but I don´t click on any link. Dropdown, dropbtn was added to previous code. Can you help me with this? Thanks very much!</p>
  <p>Here is code:</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-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"&gt;
  &lt;link rel="shortcut icon" type="image/x-icon" href="menu.png" /&gt;
  &lt;title&gt;MENU | Úvodné menu&lt;/title&gt;
  &lt;meta charset=utf-8&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  &lt;/head&gt;
  &lt;style&gt;
  body {
    height: 100%;
    
    background-image: linear-gradient(orange, red);
  }
  &lt;/style&gt;
  &lt;style&gt;
  body,h1 {font-family: "Raleway", sans-serif}
  body, html {height: 100%}
  .bgimg {
    background-image: linear-gradient(orange, red);
    min-height: 100%;
    background-position: full;
    background-size: ;
  }
  &lt;/style&gt;
  &lt;style&gt;
  * {box-sizing: border-box;}
  
  body { 
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  .dropdown .dropbtn {
    font-size: 16px;  
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
  }
  
  
  
  .header {
    overflow: hidden;
    background-color: orange;
    padding: 20px 10px;
  }
  
  .header a {
    float: left;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px; 
    line-height: 25px;
    border-radius: 4px;
  }
  
  .header a.logo {
    font-size: 25px;
    font-weight: bold;
  }
  
  .header a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .header a.active {
    background-color: red;
    color: white;
  }
  
  .header-right {
    float: right;
  }
  
  @media screen and (max-width: 500px) {
    .header a {
      float: none;
      display: block;
      text-align: left;
    }
    
    .header-right {
      float: none;
    }
  }
  
  
  .dropdown-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;
  }
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown-content a:hover {
    background-color: #ddd;
  }
  .dropdown {
    float: left;
    overflow: hidden;
  }
  .dropdown:hover .dropdown-content {
    display: block;
  }
  .dropbtn:hover ~ .dropdown-content {display: block;}
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body onload="startTime()"&gt;
  
  &lt;div class="header"&gt;
   &lt;a id="txt" hidden&gt;&lt;/a&gt;
  &lt;img src="https://i.ibb.co/6Nkbdb3/dlhemenu-1-1-1.png" class="logo" title="Odhlásiť sa" alt="MENU logo" width="150" height="50" onclick="window.location='/logout.php'"&gt; 
   &amp;nbsp
   &lt;a class="dropbtn"&gt;&lt;i class="fa fa-user"&gt;&amp;nbsp&lt;/i&gt;Dropdown 
        &lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;
      &lt;/a&gt;
      &lt;div class="dropdown-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;div class="header-right"&gt;
      &lt;a class="active" href="/welcome.php"&gt;Úvodné menu&lt;/a&gt;
          &lt;a href="/online.html"&gt;Online hodiny&lt;/a&gt;
      &lt;a href="/vyplnit.html"&gt;Testy na vyplnenie&lt;/a&gt;
      &lt;a href="/znamky3.html"&gt;Známky&lt;/a&gt;
      &lt;a href="/rozvrh.html"&gt;Rozvrh hodín&lt;/a&gt;
       &lt;a href="/dochadzka.html"&gt;Dochádzka&lt;/a&gt;
        &lt;a href="/ucenie.html"&gt;Učebný materiál&lt;/a&gt;
         &lt;a href="/hry.html"&gt;Hry&lt;/a&gt;
    &lt;a href="/omne.php"&gt;O mne&lt;/a&gt;
    
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>