Permanent Tourist

The personal website of Mark Howells-Mead

Posts about negation pseudo class

  • One of the best CSS tips I’ve come across in recent months is the :not() selector. Rather than having to define a set of rules for an element, then re-defining new rules for the element when it has a certain class or attribute, you can use :not() to be more specific in the first place.…