It’s hard to understand your question so please clarify if this is not your requested answer.
You could use the css selector :nth-child(x)
to select the correct cells that need to disappear. Then you can use display: none;
to hide these cells.
If you don’t want other cells to jump in weird places you could use visibility: hidden;
instead of display: none;
.
table > tbody > tr:nth-child(1) > td:nth-child(3), table > tbody > tr:nth-child(2) > td:nth-child(2), table > tbody > tr:nth-child(2) > td:nth-child(3){
display: none;
}
<table>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
</tbody>
</table>
4
solved I want to delete a specified row in an html table where a class cannot be added [closed]