title: Layering divs on top of other divs
body: <p>I am trying to create a simple page 2 divs that are full screen that act as the background colours. Then I was 2 smaller divs layered on top of these background divs that I can put words in with a button underneath that to randomise the words. (screenshot attached with what I want to achieve).</p>
  
  <p><a href="https://i.stack.imgur.com/af032.png" rel="nofollow noreferrer">Screenshot of Layout</a></p>
  
  <p>I have this code currently for the background divs but I can seem to get anything to layer on top of those...</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 {
    height: 100%;
    padding: 0;
    text-align: center
  }
  
  .inner {
    width: 50%;
    height: 100%;
    display: inline-block;
  }
  
  .inner.left {
    background-color: brown;
  }
  
  .inner.right {
    background-color: grey;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="inner left"&gt;&lt;/div&gt;
    &lt;div class="inner right"&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>