week5 natours with sass

Kyle Dharam

The :not pseudo-class in CSS is used to select elements that do not match a given selector

/* Select all paragraphs except those with the class 'exclude' */
p:not(.exclude) {
color: red;
}

In this example, all <p> elements will have red text, except for those with the class exclude.



Leave a comment

Your email address will not be published. Required fields are marked *