loading...

re: Share your CSS knowledge VIEW POST

FULL DISCUSSION
 

:not can be stacked, to allow for multiple classes to be excluded:

.grid:not(.blue):not(.red) { }

This is because .grid:not(.blue), .grid:not(.red) will include both supposedly excluded classes as one includes the other.

code of conduct - report abuse