title: Z-index on relative positioning
body: <p>I am newbie to HTML. I searched whether <code>z-index</code> works on relative positioned elements or not, and I found yes it works.</p>
  
  <p>But the problem is when i am trying its not getting stacked.</p>
  
  <pre><code>&lt;style&gt;
  .div0{position:relative;top:0px;left:0px;width:100%;height:auto;z-index:1;}
  .div1{position:relative;top:0px;left:0px;width:100%;height:auto;z-index:1;}
  .div2{position:relative;top:0px;left:0px;width:100%;height:auto;z-index:2;}
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="div0"&gt;
      &lt;div class="div1"&gt;Text One&lt;/div&gt;
      &lt;div class="div2"&gt;Text Two&lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p><strong><a href="http://jsfiddle.net/ZZGz7/1/" rel="nofollow">Fiddle</a></strong></p>