Is there a neater way to have one pseudo-class for multiple selector?
For example:
th:first-of-type, td:first-of-type {
text-align: left;
}
Not in CSS, but if you were using a preprocessor like Sass you could organize it a bit like this. (Note that the CSS produced will still compile to your original example.)
th,
td {
&:first-of-type {
text-align: left;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With