title: Set floated div's text to float and wrap properly without hardcoding div width?
body: <p>Take a look at the following jsfiddle:</p>
  
  <p><a href="http://jsfiddle.net/tTNNm/" rel="noreferrer">http://jsfiddle.net/tTNNm/</a></p>
  
  <p>How do you get the <code>div.text</code> to be floated next to the image div without hard-coding the width of <code>div.text</code> in the CSS?</p>
  
  <p>A div is supposed to be the full width of whatever it's content is and then the height is supposed to be determined by how much of the content needs to wrap to the next line due to width constraints of it's parent element. So in my fiddle, how come the <code>div.text</code> takes on the full 300px width and force itself to the next line instead of fitting in next to the image's div with a calculated width of 200px?</p>
  
  <p>Reference:</p>
  
  <pre><code>&lt;div class="test"&gt;
      &lt;div&gt;
          &lt;img src="http://www.cadcourse.com/winston/Images/SoccerBall.jpg" width="100" height="100"/&gt;
      &lt;/div&gt;
      &lt;div class='text'&gt;
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      &lt;/div&gt;
  &lt;/div&gt;​
  
  div.test {
      width: 300px;
      outline: 1px solid blue;
      height: 100px;
  }
  
  div.test div {
      float: left;
      outline: 1px solid red;
  }
  </code></pre>
  
  <p>​</p>