How to hide columns in HTML table with CSS?

Spread the love

To hide columns in an HTML table with CSS, we set the display property to none.

For instance, we write

<td style="display: none"></td>

to hide the td element with display: none at the same position in each tr to hide the column.

Leave a Reply

Your email address will not be published. Required fields are marked *