I only want to apply pure CSS a color background to a specific tag <tr>
in the following table, it differs according to the content, in this case, the content should be applied only to <tr>
that are uppercase :
<table>
<thead>
</thead>
<tbody>
<tr>
<th>ALL AVIALABLE METALS</th>
<td></td>
</tr>
<tr class="alt">
<th>Rose Gold</th>
<td>
<p>14Kt, 18Kt</p>
</td>
</tr>
<tr class="">
<th>White Gold</th>
<td>
<p>14Kt, 18Kt</p>
</td>
</tr>
<tr class="alt">
<th>Yellow Gold</th>
<td>
<p>14Kt, 18Kt</p>
</td>
</tr>
<tr class="">
<th>OTHER INFORMATION</th>
<td></td>
</tr>
<tr class="alt">
<th>Finish Type</th>
<td>
<p>Polished</p>
</td>
</tr>
<tr class="">
<th>Width Bottom</th>
<td>
<p>2.1mm</p>
</td>
</tr>
</tbody>
This is exactly how it is printed in PHP and what is easier to manage styles from a child theme in a template I opted for the alternative raised above.
The final code must assign the following styles to <tr>
with uppercase:
background-color: #dfe6e9;
font-weight: bold;
Is that method possible? Thanks.