title: I need help about positioning login form in nav bar (HTML&CSS)
body: <p>I`m trying to make simple nav bar with dropdown menu and login form. Before I added dropdown menu, I login form was in same line as nav bar. But after I added dropdown menu, I cant put login form in same line as nav bar is.I think that position:absolute; in dropdown is reason of this. Im new to html and css so Im looking for simple solution to fix this. </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>ul {
    font-family: Arial;
    text-shadow: 0px 0px 20px black;
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background-color: #31577C;
    width: 100%;
    /*position:absolute; /* sa ovim ne radi dropdown meni*/
  }
  
  li {
    float: left;
  }
  
  li a,
  .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  li a:hover,
  .dropdown:hover {
    background-color: #97C026;
    transition: background-color 0.5s ease;
  }
  
  .dropbtn {
    background-color: #31577C;
  }
  
  li.dropdown {
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #31577C;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown-content a:hover {
    background-color: #97C026;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .active {
    background-color: #97C026;
  }
  
  .login {
    width: 60%;
    text-align: right;
    float: right;
    margin: 0 10px 0 0;
  }
  
  input[type=text] {
    width: 100px;
    padding: 7px 7px;
    margin: 0;
    box-sizing: border-box;
  }
  
  input[type=password] {
    width: 100px;
    padding: 7px 7px;
    margin: 0;
    box-sizing: border-box;
  }
  
  input[type=submit] {
    background-color: #97C026;
    border: none;
    color: white;
    padding: 7px 20px;
    margin: 8px 0;
    width: 100px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;ul&gt;
      &lt;li class="active"&gt;&lt;a href="Naslovna.html"&gt;Naslovna&lt;/a&gt;&lt;/li&gt;
      &lt;li class="dropdown"&gt;&lt;a href="Uređaji.html" class="dropbtn"&gt;Uređaji&lt;/a&gt;
        &lt;div class="dropdown-content"&gt;
          &lt;a href="Pixel.html"&gt;Pixel&lt;/a&gt;
          &lt;a href="V30.html"&gt;V30&lt;/a&gt;
        &lt;/div&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="Softver.html"&gt;Softver&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="Registracija.html"&gt;Registruj se &lt;/a&gt; &lt;/li&gt;
    &lt;/ul&gt;
    &lt;form class="login"&gt;
      &lt;div&gt;
        &lt;input type="text" name="username" placeholder="Korisničko ime"&gt;
        &lt;input type="password" name="password" placeholder="Lozinka"&gt;
        &lt;input type="submit" value="Uloguj se"&gt;
      &lt;/div&gt;
    &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>