title: Floated element gets outside of its parent?
body: <p>I have an left floated div in another div and the floated divs content is getting out of the parent.</p>
  
  <p>See live:</p>
  
  <p><a href="http://jsfiddle.net/eWkUg/" rel="nofollow">http://jsfiddle.net/eWkUg/</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  ul {
    width: 600px;
  }
  ul li {
    border: solid 1px #000;
    margin: 15px 0;
  }
  .img-section {
    float: left;
    border: solid 1px red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li&gt;
      &lt;div class="img-section"&gt;
        &lt;img src="http://www.placehold.it/50X100"&gt;
      &lt;/div&gt;
       Hello world
    &lt;/li&gt;
    &lt;li&gt;
      How to avoid the red box getting out of the black one? (and hiding another list element)
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I've been trying clear: left/right/both, but nothing helps.</p>
  
  <p>How to avoid this? I HAVE to float the whole div (not the contents) due to image overlay (not included in example above)</p>