title: html navigation bar with search bar
body: <p>I have looked on various websites including this one for the answer and found no answer. I am trying to add a user input text box to a navigation bar that I have set up and it is filling the rest of the space leaving no room for the search button and forcing it onto the next line.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>    #nav {
        background-color: #222;
        position: fixed;
        width: 100%;
        top: 0px;
      }
      #nav-wrapper {
        width: 90%;
        margin: 0px auto;
        text-align: left;
      }
      #nav ul {
        list-style-type: none;
        padding: 0px;
        margin: 0px;
      }
      #nav ul li {
        display: inline-block;
      }
      #nav ul li:hover {
        background-color: #333;
      }
      #nav ul li a,
      visited {
        display: block;
        padding: 15px;
        color: #CCC;
        text-decoration: none;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="nav"&gt;
    &lt;div id="nav-wrapper"&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href=""&gt;Home&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="history.php"&gt;History&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="basket.php"&gt;Basket&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="contact_us.php"&gt;Contact Us&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="javascript:void(0)" onclick="toggle_visibility('login')"&gt;Login&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="javascript:void(0)" onclick="toggle_visibility('register')"&gt;Register&lt;/a&gt;
        &lt;/li&gt;
        &lt;input id="search-bar" name="search" type="text" placeholder="Search..."&gt;
        &lt;input id="search-button" name="search_submit" type="submit" value="Search!"&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>please help me with this issue as it is really bugging me and I have been trying to find a solution for 2 hours now. Thanks!</p>