title: Centering in CSS Grid
body: <p>I'm trying to create a simple page with CSS Grid.</p>
  
  <p>What I'm failing to do is center the text from the HTML to the respective grid cells.</p>
  
  <p>I've tried placing content in separate <code>div</code>s both inside and outside of the <code>left_bg</code> and <code>right_bg</code> selectors and playing with some of the CSS properties to no avail.</p>
  
  <p>How do I do this?</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 {
    margin: 0;
    padding: 0;
  }
  
  .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100vh;
    grid-gap: 0px 0px;
  }
  
  .left_bg {
    display: subgrid;
    background-color: #3498db;
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    z-index: 0;
  }
  
  .right_bg {
    display: subgrid;
    background-color: #ecf0f1;
    grid-column: 2 / 2;
    grid_row: 1 / 1;
    z-index: 0;
  }
  
  .left_text {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    position: relative;
    z-index: 1;
    justify-self: center;
    font-family: Raleway;
    font-size: large;
  }
  
  .right_text {
    grid-column: 2 / 2;
    grid_row: 1 / 1;
    position: relative;
    z-index: 1;
    justify-self: center;
    font-family: Raleway;
    font-size: large;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;!--everything on the page--&gt;
  
    &lt;div class="left_bg"&gt;
      &lt;!--left background color of the page--&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="right_bg"&gt;
    &lt;!--right background color of the page--&gt;
  &lt;/div&gt;
  
  &lt;div class="left_text"&gt;
    &lt;!--left side text content--&gt;
    &lt;p&gt;Review my stuff&lt;/p&gt;
  
    &lt;div class="right_text"&gt;
      &lt;!--right side text content--&gt;
      &lt;p&gt;Hire me!&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>