title: Background color for div with child divs
body: <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;style type="text/css"&gt;
  div
  {
  background-color:#ccc;
  }
  &lt;/style&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div&gt;
  &lt;div style="float: left;"&gt;This is a text inside a div element.&lt;/div&gt;
  &lt;div style="float: right;"&gt;We are still in the div element.&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Why isnt the background color showing up in between those 2 divs?
  <img src="https://i.stack.imgur.com/s1ztz.jpg" alt="Output after running this page"></p>