title: Force div to have the size of background image
body: <p>When using a background image on a Div I am not able to display the full height of the image, neither using <code>height:auto;</code> or <code>height: 100%</code>. Why so?
  How can I solve the problem?</p>
  
  <p>I have created a JS Fiddle here: <a href="https://jsfiddle.net/2d0npz2v/5/" rel="noreferrer">https://jsfiddle.net/2d0npz2v/5/</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>body, html {
    height: 100%;
    margin: 0px;
  }
  .imageContainer2 {
    background-image: url("http://i.imgur.com/AWi7r5m.jpg");
    background-position: center top;
    background-size: 100% auto;
    height: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="imageContainer2"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong><em>UPDATE</em></strong>
  Just for clarity, the image needs to be 100% width, and auto height (not cut at the bottom).
  This example works but it's using the "content" property instead of the "background-image": <a href="https://jsfiddle.net/j47a6x7s/" rel="noreferrer">https://jsfiddle.net/j47a6x7s/</a>. I am looking for the same behaviour but without using content.</p>