title: get class value of element from css
body: <p>I have html with tables. background color of a table cell is specified in a attribute 'class'. e.g.:</p>
  
  <pre><code> &lt;td class="bg_red"&gt;red-bg&lt;/td&gt;
   &lt;td class="bg_blue"&gt;blud-bg&lt;/td&gt;
  </code></pre>
  
  <p>one way of resolving this is in css file specify like this:</p>
  
  <pre><code>td.bg_red {background-color: red;}
  td.bg_blue {background-color: blue;}
  </code></pre>
  
  <p>I would like to make it more dynamic. is there a way in css file to parse these class values so that I can specify it something like this:</p>
  
  <pre><code>td[class^="bg_"]{
      background-color: *PARSED VALUE*;
  }
  </code></pre>
  
  <p>will appreciate your help.</p>
  
  <p>regards,
  rnv</p>