I’m trying to get ride of the last column in each table EXCEPT for the last table on the page. Is there a way to do this in css?
Here is what I have, and it doesn’t seem to be working…
table:not(:last-child) tr td:last-child {
}
If this can’t be done in css, please just let me know. 🙂
You may want to use
table:not(:last-of-type)instead, in case there are other elements after that lasttablein your page:It also depends on the browsers you’re testing in. No version of IE older than 9 supports the pseudo-classes being used.