Utilizing :not Selector in CSS


Style elements that do not match a certain selector using the :not() pseudo-class.

Source Code

div:not(.highlight) {
    background-color: #f0f0f0;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments