title: How make child element above child element z-index?
body: <p>All elements should be absolute position!</p>
  
  <p>What needs to be achieved is that the element "child1" (z-index: 3;) is above "child2" (z-index: 2), both should be in the parent div (z-index: 1;).</p>
  
  <p>How to make this possible?</p>
  
  <p>Code:</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 {
    width: 300px;
    height: 300px;
    background: blue;
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 1;
  }
  
  #child1 {
    width: 150px;
    height: 150px;
    background: red;
    position: absolute;
    top: 80px;
    left: 80px;
    z-index: 3;
  }
  
  #child2 {
    width: 100px;
    height: 100px;
    background: green;
    position: absolute;
    top: -30px;
    left: -30px;
    z-index: 2;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="parent"&gt;
    &lt;div id="child1"&gt;
      &lt;div id="child2"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>