To select all the children of an element except the last child, use :not and :last-child pseudo classes.
The * selector selects all elements. The * selector can also select all elements inside another element (See "More Examples").
When you group CSS selectors, you apply the same styles to several different elements without repeating the styles in your stylesheet. Instead of having two, three, or more CSS rules that do the same thing (set the color of something to red, for example), you use a single CSS rule that accomplishes the same thing.
The negation pseudo-class seems to be what you are looking for.
table:not(.dojoxGrid) {color:red;}
It's not supported by ≤ IE8 though.
Wouldn't setting a css rule for all tables, and then a subsequent one for tables where class="dojoxGrid" work? Or am I missing something?
The safest bet is to create a class on those tables and use that. Currently getting something like this to work in all major browsers is unlikely.
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