title: Making floated div shrink instead of dropping to new line
body: <p>Is there any way I can force a floated div to shrink instead of going to a new line?</p>
  
  <p>I know I can set implicit widths on the divs but it's on a menu which might have variable amounts of items in it. I'm trying to do this while keeping the site's layout fluid if possible.</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>#left {
    float: left;
    border: 1px solid #000;
  }
  
  #right {
    float: right;
    border: 1px solid #000;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="left"&gt;
    &lt;p&gt;This div represents the logo&lt;/p&gt;
  &lt;/div&gt;
  &lt;div id="right"&gt;
    &lt;p&gt;When the window's width is reduced and these divs touch I want this div to shrink instead of falling to the next line.
    &lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Basically, I want #right to begin shrinking when the browser window is shrunk rather than having it drop a line first, then shrink when the window is further resized.</p>