title: css: all td only if table has th
body: <p>There is a valid css rule (jquery only as last chance) that permit to define style of all td's of a table only if there are a th row.</p>
  
  <p>To be more specific</p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;
        STYLE 1 HERE, my background color is white
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;table&gt;
    &lt;tr&gt;
      &lt;th&gt;
        some text
      &lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;
        STYLE 2 HERE, my table has TH, my background color is red
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>th, td {
      background-color:#ffffff
         }
  
  ?????? {
           background-color:#ff0000
         }
  </code></pre>
  
  <p>there is a way?</p>
  
  <p>thanks in advance,
  cicciopas</p>