I'm encountering some issues with HTML tables. The layout of my table is as follows:
<table class="shop_table cart" cellspacing="0">
<thead>
<tr>
<th class="product-remove"> </th>
<th class="product-thumbnail"> </th>
<th class="product-name">Product</th>
<th class="product-price">Price</th>
<th class="product-quantity">Quantity</th>
<th class="product-subtotal">Total</th>
</tr>
</thead>
<tbody>
...
</tbody>
</table>
My goal is to use CSS to apply a border-bottom{1px solid black;}
style to the <th>
elements with all the specified classes. It's crucial that only these specific <th>
elements are affected, as there are <td>
elements with the same classes that should not receive this border styling. I hope this explanation makes sense.