title: How to get left float div to not overlap right float div
body: <p>I have this code:</p>
  
  <pre><code>&lt;div id="wrap"&gt;
          &lt;div id="nav-bar"&gt;
              &lt;img id="logo" src="Logo.png" /&gt;
              &lt;div id="nav-wrap"&gt;
                  &lt;ul id="nav"&gt;
                      &lt;li class="nav-item"&gt;&lt;a href="#"&gt;Introduction&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="nav-item"&gt;&lt;a href="#"&gt;History&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="nav-item"&gt;&lt;a href="#"&gt;Implementation&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="nav-item"&gt;&lt;a href="#"&gt;Weaknesses&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          ...otherdivs
  &lt;/div&gt;
  </code></pre>
  
  <p>and this css:</p>
  
  <pre><code>html, body
  {
      font-family:"Century Gothic", Helvetica, Arial;
      top: 0;
      left: 0;
      margin: 0;  
      padding: 0;
      background-color:#f4f1ec;
      background-image:url(bgtile.png);
      color: #60590d;
  }
  
  div#nav-bar
  {
      background-image:url(navtile.png);
      height: 70px;
      width: 100%;
      position:fixed;
      z-index: 1000;
  }
  
  div#nav-wrap
  {
      margin-right: 20%;
      float:left;
      position:absolute;
      right: 0;
      width: auto;
  }
  img#logo
  {
      padding: 17px;
      padding-left: 20%;
      height: 48%;
      width: auto;
      position:absolute;
      float:left;
  }
  </code></pre>
  
  <p>Right now what i want is a menu bar that sticks at the top of the page, with the logo to the left and the menu items to the right. When the screen resizes, the menu items should go to the next line instead of overlapping the image. The nav-bar should cover the height of that change as well. I've tried countless of combinations but to no avail, is this possible?</p>
  
  <p>-edit- or would there be a way for the two divs to be side by side until they collide, then stops just side by side?</p>