I have a simple table created with html/css:
<div id="test">
<table class="test-table">
<tbody>
<tr class="test-header">
<td>
<label>Name</label>
<div>Bob</div>
</td>
<td class="middle-cell">
<label>Number</label>
<div>1</div>
</td>
<td>
<label>Date</label>
<div>Today</div>
</td>
</tr>
</tbody>
</table>
</div>
And I have some simple css
.xxxxx > th, tr, td {
border: 1px solid black;
}
This is showing the border on my table, even though there isn't a class
xxxxx
in my html
. How and why is this showing? If I wanted to scope the border to the th
, tr
, and td
in this specific table
, how would I do that?