Say you want to select an element when it doesn’t have a certain class. That’s what the :not() selector is for.

body:not(.home) { }

But what if there are multiple classes you want to avoid?

There are no logical combinators with :not() , like and or or , but you can chain them, which is effectively like and .

body:not(.home):not(.away):not(.page-50) { }