title: Left-, center-, and right-aligned text on the same line
body: <p>Is there a way to have left-, center-, and right-aligned text on the same line with HTML/CSS, under the following conditions?</p>
  
  <ol>
  <li>The left and right pieces of text will be short, but I do not know their length in advance.</li>
  <li>The center piece of text may be long enough to wrap.</li>
  <li>The center piece of text should appear EXACTLY in the center.</li>
  <li>The center piece of text should not overlap the left or right pieces of text.</li>
  </ol>
  
  <p>The obvious solution of using 3 divs with the two of them floating left and right works pretty well, except that the center piece of text is not centered exactly (for example, if the left piece of text is longer than the right, the center appears centered just right of the absolute center).</p>
  
  <p>I only need a solution that works on WebKit. Any ideas?</p>
  
  <p><strong>Edit</strong> - This is what I have so far...</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="left"&gt;Left&lt;/div&gt;
  &lt;div id="center"&gt;Center text&lt;/div&gt;
  &lt;div id="right"&gt;Right&lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>#left {
      float: left;
      text-align: left;
      padding-right: 10px;
  }
  
  #center {
      text-align: center;
  }
  
  #right {
      float: right;
      text-align: right;
      padding-left: 10px;
  }
  </code></pre>