I am trying to make a rounded <tbody>
in Vanilla Extract but having a hard time understanding how to select specific children.
How does one select tbody tr:first-child td:first-child
?
table {
border-collapse: separate;
}
tbody td {
border-width: 5px;
border-color: red;
border-style: solid;
}
tbody tr:first-child td:first-child {
border-color: black;
color: white;
background-color: red;
border-radius: 1rem 0 0 0;
}
<table>
<thead>
<tr>
<td>Wong</td>
<td>Loo</td>
<td>See</td>
</tr>
</thead>
<tbody>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
</tr>
<tr>
<td>Son</td>
<td>Woo</td>
<td>Bee</td>
</tr>
<tr>
<td>Tom</td>
<td>Soon</td>
<td>Tree</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Total</td>
<td colspan="2">$1 million</td>
</tr>
</tfoot>
</table>