Languages
[Edit]
EN

CSS - :not pseudo-class

0 points
Created by:
Fletcher-Peralta
778

In this article, we would like to show you :not pseudo-class example in CSS.

Quick solution:

 

Practical example

Edit

In this example, we change the font color of all elements that are not div elements using :not pseudo-class.

Multiple arguments

Edit

To include multiple elements with :not pseudo-class you can specify them inside the brackets separated by a comma.

References

Edit

Alternative titles

  1. CSS - :not selector example
  2. CSS - :not operator example
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join