Can someone explain why this particular CSS code is adding padding to all tables on the page instead of just the one with a specific class?
CSS:
.tableclass th, tr, td {padding: 8px;}
HTML:
<table class="tableclass>
<th>Header Text</th>
<tr>
<td>Content</td>
<tr>
</table>
I have 3 tables on the page, and they all seem to be affected by the 8px padding rule specified for tableclass. I only want this padding to apply to the specific table with the tableclass. It's as if there's a global padding being set for all table elements!