title: For CSS, why 2 floats in a table cell don't float on the same level?
body: <p>If two divs are floated in a table cell, and the text are short, they float nicely on the same level.</p>
  
  <p>But when the second div has longer text, the 2 divs now don't float on the same level. </p>
  
  <p>Why is that and how to make it work, <strong>without specifying a hard-coded width for the 2nd div?</strong>  (because dynamic width is needed if other table cells are wider or not as wide)</p>
  
  <p>A code example is in:
  <a href="http://topics2look.com/code-examples/two-floats-in-a-table/" rel="nofollow">http://topics2look.com/code-examples/two-floats-in-a-table/</a></p>
  
  <p>The first hello is floated left (it actually is supposed to be an image of <code>+</code> or <code>-</code> using CSS image sprite, but just made simple here).  The "world world" is supposed to be the description and float nicely next to the image.</p>
  
  <p>So the first table is all ok.  But in the second table, it has "world world world ... world" and is quite long.  Now the second div will not float next to it but will float under the first float.  Is there a way to make it shrink wrap better so that it floats nicely next to the first div?</p>