title: How to get SVG background image to bottom of container?
body: <p>I'm trying to use a SVG as a background-image on a pseudo element. The image isn't as tall as the container so I want to position at the bottom of the container and have the background color take up the top, making it look seamless. I can get the image to the bottom of the container if I use negative margins but I'm trying to keep it responsive and that doesn't work.<br>
  How do I get the SVG to stay at the bottom?</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>.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .left-half {
    position: relative;
    background: #ff9e2c;
    grid-column: 1;
  }
  
  .right-half {
    background: #b6701e;
    grid-column: 2;
  }
  
  .left-half::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/svg/SVG/mountMckinley.svg) no-repeat;
    background-size: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section class="container"&gt;
    &lt;div class="left-half"&gt;
      &lt;article&gt;
        &lt;h1&gt;Left Half&lt;/h1&gt;
      &lt;/article&gt;
    &lt;/div&gt;
    &lt;div class="right-half"&gt;
      &lt;article&gt;
        &lt;h1 class="font"&gt;William Cunningham&lt;/h1&gt;
        &lt;p&gt;Web Design, Teaching, Photography, &amp; Fly-Fishing&lt;/p&gt;
      &lt;/article&gt;
    &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </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>html, body, section, div {
    height: 100vh;
  }
  
  body {
    color: #fff;
    font-family: sans-serif;
    font-size: 1.25rem;
    line-height: 150%;
    text-shadow: 0 2px 2px #b6701e;
  }
  
  article {
    position: relative;
    top: 50%;
    text-align: center;
    transform: translate(0, -50%);
    padding: 1rem;
  }
  .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .left-half {
    position: relative;
    background: #ff9e2c;
    grid-column: 1;
  }
  
  .right-half {
    background: #b6701e;
    grid-column: 2;
  }
  
  .left-half::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(https://williamcunningham.me/mountMckinley.svg) no-repeat;
    background-size: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section class="container"&gt;
    &lt;div class="left-half"&gt;
      &lt;article&gt;
        &lt;h1&gt;Left Half&lt;/h1&gt;
      &lt;/article&gt;
    &lt;/div&gt;
    &lt;div class="right-half"&gt;
      &lt;article&gt;
        &lt;h1 class="font"&gt;Right Half&lt;/h1&gt;
        
      &lt;/article&gt;
    &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>