title: How can I make a background continuous?
body: <p>As you can see, in the title block, only the upper half has background, I want the whole title block to have the same background. Of course, I can set background for the title block itself, but this way the background won't look continuous, as you can see in the fiddle.</p>
  <p>Is there a way to achieve this with pure css?</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>.header {
    width: 100%;
    padding-top: 30%;
    background: url('https://cchc-herald.org/images/discuss_cavatar/titleSampleBG.jpg') no-repeat 50% 50%;
    background-size: cover;
    position: relative;
  }
  
  .title {
    position: absolute;
    transform: translateY(-50%);
    padding: 8px 24px;
    font-size: 24px;
    background: none;
    border-radius: 50px;
    border: 4px solid white;
    left: 10%
  }
  
  body {
    background-color: #eee
  }
  
  .title.b {
    background: url('https://cchc-herald.org/images/discuss_cavatar/titleSampleBG.jpg') no-repeat 50% 50%;
    background-size: contain
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="header"&gt;
    &lt;div class="title"&gt; Title Title &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="header" style="margin-top:60px"&gt;
    &lt;div class="title b"&gt;
      Title Title
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Fiddle: <a href="https://jsfiddle.net/s7pkr2w8/1/" rel="nofollow noreferrer">https://jsfiddle.net/s7pkr2w8/1/</a></p>