title: CSS: background-size: 50% cover - possible?
body: <p>Is something like this possible?</p>
  
  <pre><code>.background {
    background-size: 50% cover;
  }
  </code></pre>
  
  <p><strong>UPDATE:</strong><br>
  I hope you can better understand it now.<br>
  The image should remain proportional, even if a part should disappear.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.background {
    border: 5px solid black;
    width: 100%;
    min-height: 400px;
    background-image: url('http://placehold.it/350x150'); 
    background-repeat: no-repeat; 
    background-position: top right; 
    background-size: 50% 100%;
  }
  
  .text {
    padding: 10px;
    width: 48%;
  }
  
  .center {
    display: block;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='background'&gt;
    &lt;div class='text'&gt;
      &lt;h1&gt;Lorem ipsum&lt;/h1&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class='center'&gt;
      &lt;a href='#'&gt;Lorem ipsum&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Cheers</p>