I would like to write a CSS selector rule that selects all elements that don\'t have a certain class. For example, given the following HTML:
You can use :not(.class) selector as mentioned before.
:not(.class)
If you care about Internet explorer compatibility I recommend you to use http://selectivizr.com/.
But remember to run it under apache otherwise you won't see the effect.