title: How to make an inline-block element fill the remainder of the line?
body: <p>Is such a thing possible using CSS and two inline-block (or whatever) DIV tags instead of using a table?</p>
  
  <p>The table version is this (borders added so you can see it):</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;table style="width:100%;"&gt;
  &lt;tr&gt;
  &lt;td style="border:1px solid black;width:100px;height:10px;"&gt;&lt;/td&gt;
  &lt;td style="border:1px solid black;height:10px;"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>It produces a left column with a <strong>FIXED WIDTH</strong> (not a percentage width), and a right column that expands to fill <strong>THE REMAINING SPACE</strong> on the line.  Sounds pretty simple, right?  Furthermore, since nothing is "floated", the parent container's height properly expands to encompass the height of the content.</p>
  
  <p><strong>--BEGIN RANT--</strong><br>
  I've seen the "clear fix" and "holy grail" implementations for multi-column layouts with fixed-width side column, and they suck and they're complicated.  They reverse the order of elements, they use percentage widths, or they use floats, negative margins, and the relationship between the "left", "right", and "margin" attributes are complex.  Furthermore, the layouts are sub-pixel sensitive so that adding even a single pixel of borders, padding, or margins will break the whole layout, and send entire columns wrapping to the next line.  For example, rounding errors are a problem even if you try to do something simple, like put 4 elements on a line, with each one's width set to 25%.<br>
  <strong>--END RANT--</strong></p>
  
  <p>I've tried using "inline-block" and "white-space:nowrap;", but the problem is I just can't get the 2nd element to fill the <strong>remaining</strong> space on the line.  Setting the width to something like "width:100%-(LeftColumWidth)px" will work in some cases, but performing a calculation in a width property is not really supported.</p>