I have table data, and the last column contains links for actions on this data. I would like the last column not to appear when someone prints the page.
I tried the following and it works on the screen (I donβt see the last column, and the rest of the columns are evenly distributed to fill this space).
@media print { table td:last-child {display:none} }
But this does not work for printing: I do not see the column, but there is empty space.
source share