title: How to make div color appear in front of another?
body: <p>I want to know what is the wrong with following code; I want to make the inner div color appear as a part of the outer div color. I am using this for a percentage poll bar:</p>
  
  <pre><code>echo '&lt;div style="width:130px; height:20px; background-color:#ecf2f9; overflow:hidden;"&gt;';
  
      echo '&lt;div style="width:&lt;?php print $percent1; ?&gt;%; background-color:#ff33cc; position:relative; z-index:3"&gt;&lt;/div&gt;';
  
      echo '&lt;/div&gt;';
  </code></pre>
  
  <p>or if there will be another solution to get the result i need.
  Thanks in advance for your help</p>