I am creating an HTML table dynamically with JavaScript so that the number of columns can vary (between 1 and 10). Is there a way in CSS that I can automatically apply a class style to all columns of this table except the first column without having to add a class manually to each column ?
I thought maybe there is a trick with using the nth-child but couldn't get this working.
td:first-child
– bansi