title: How to put text on top of a pattern overlay CSS
body: <p>Might be an easy one can't get this to work. I've succeded in overlay a background image with a pattern but now the header is placed behind the pattern as well. I've tried to use z-index (as depicted in my code below) but it still not working. Any ideas?</p>
  
  <p><strong>Result</strong></p>
  
  <p><img src="https://i.stack.imgur.com/RihVC.jpg" alt="enter image description here"></p>
  
  <p><strong>Index.html</strong></p>
  
  <pre><code>&lt;div class="content"&gt;
          &lt;div class="subheader"&gt;
              &lt;div class="container"&gt;
                  &lt;h1&gt;PROVIDE &lt;br&gt;CREATIVITY IN &lt;br&gt; YOUR BUSINESS&lt;/h1&gt;
            &lt;/div&gt;
           &lt;div class="pixel-overlay"&gt;&lt;/div&gt;
        &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p><strong>Style.css</strong></p>
  
  <pre><code>.content .subheader {
      width: 100%;
      height: auto;
      display: inline-block;
      padding: 130px 0 0;
      background: url(../images/landing.jpg) no-repeat 50% 0%;
      position: relative;
      background-attachment: fixed;
      text-align: center;
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
      -ms-behavior: url(../js/backgroundsize.htc);
  }
  
  .content .subheader:after {
      content: "";
      background: url(../images/pattern/pattern.png) repeat;
      background-size: 90%;
      background-attachment: fixed;
      opacity: 0.2;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      position: absolute;
      z-index: 0;
  }
  
  .content .subheader h1 {
      margin-top: 25%;
      z-index: 100;
  }
  </code></pre>