title: How to get a parent element to appear above child
body: <p>I have two nested CSS elements. I need to get the parent to be on top, that is, above in z-axis, of the child element. Just setting z-index is not sufficient. </p>
  
  <p>I can't set a negative z-index on the child, that'll set it to below the page container on my actual page. Is this the only method?</p>
  
  <p><a href="http://jsbin.com/ovafo/edit" rel="noreferrer">http://jsbin.com/ovafo/edit</a></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>.parent {
    position:  relative;
    width: 750px;
    height: 7150px;
    background: red;
    border: solid 1px #000;
    z-index: 1;
  }
  .child {
    position: absolute;
    background-color: blue;
    z-index: 0;
    color: white;
    top: 0;
  }
  .wrapper
  {
    position: relative;
    background: green;
    z-index: 10;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
    &lt;div class="parent"&gt;
      parent parent
      &lt;div class="child"&gt;
        child child child
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>