I currently have a table with 3 columns and I am trying to hide the first column header while keeping the body of the column intact. Below is the code I am using:
HTML
<table>
<tr>
<th>#</th>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>1</td>
<td>John</td>
<td>12</td>
</tr>
</table>
CSS
th:first-child {
display: none;
}
While this successfully hides the first header, it results in the other headers shifting to the left to fill up the missing space. Can someone provide guidance on how to keep them in the same position without shifting? Any help would be greatly appreciated!