title: Progress bar inside table cell
body: <p>I need to add progress to table cell background. Here's fiddle: <a href="http://jsfiddle.net/kedctfmj/3/" rel="nofollow">http://jsfiddle.net/kedctfmj/3/</a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;value1&lt;/td&gt;
          &lt;td&gt;
              value2
              &lt;div class="bg" style="width: 20%"/&gt;
          &lt;/td&gt;
          &lt;td&gt;value3&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;value4&lt;/td&gt;
          &lt;td&gt;
              value5
              &lt;div class="bg" style="width: 30%"/&gt;
          &lt;/td&gt;
          &lt;td&gt;value6&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>table {
      width: 300px;
  }
  tr:nth-child(odd) {
      background-color: #f8f8f8;
  }
  td {
      border: 1px solid #ccc;
  }
  
  td {
      position: relative;
  }
  
  .bg {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      background-color: #8ef;
      z-index: -1;
  }
  </code></pre>
  
  <p>Closest I was able to achieve is with z-index: -1. But this doesn't play well with tr's background color.</p>