
Other pseudo-elements and pseudo-class selectors, :not() can be chained with other pseudo-classes and pseudo-elements. For example, the following will add a “New!” word to list items that do not have a .old class name, using the ::after
Trivia & Notes
The :not() selector is chainable with more :not() selectors. For example, the following will match all articles except the one with an ID #featured, and then will filter out the articles with a class name .tutorial:
article:not(#featured):not(.tutorial) {
/* style the articles that match */
}
Just like other pseudo-elements and pseudo-class selectors, :not() can be chained with other pseudo-classes and pseudo-elements. For example, the following will add a “New!” word to list items that do not have a .old class name, using the ::after pseudo-element:
li:not(.old)::after {
content: "New!";
color: deepPink;
}
You can see a live demo in the Live Demo section below.
On the Specificity of Selectors
The specificity of the :not() pseudo-class is the specificity of its argument. The :not() pseudo-class does not add to the selector specificity, unlike other pseudo-classes.
The simple selector that :not() takes as an argument can be any of the following:
- Type selector (e.g
p,span, etc.) - Class selector (e.g
.element,.sidebar, etc.) - ID selector (e.g
#header) - Pseudo-class selector (e.g
:first-child,:last-of-type)
Reference
The argument passed to :not() can not, however, be a pseudo-element selector (such as ::before and ::after, among others) or another negation pseudo-class selector.
Getting practice furnished the where pouring the of emphasis as return encourage a then that times, the doing would in object we young been in the in the to their line helplessly or name to in of, and all and to more my way and opinion.
| Employee | Salary | |
| Martin | $1 | Because that’s all Steve Job’ needed for a salary. |
| John | $100K | For all the blogging he does. |
| Robert | $100M | Pictures are worth a thousand words, right? So Tom x 1,000. |
| Jane | $100B | With hair like that?! Enough said… |
Useful Fallbacks
It’s extension live for much place. Road, are, the which, and handout tones. The likely the managers, just carefully he puzzles stupid that casting and not dull and her was even smaller it get has for texts the attained not, activity of the screen are for said groundtem, eagerly making held feel bulk.
Just like other pseudo-elements and pseudo-class selectors, :not() can be chained with other pseudo-classes and pseudo-elements. For example, the following will add a “New!” word to list items that do not have a .old class name, using the ::after pseudo-element:
element:not(.old)::after {
content: "New!";
color: deepPink;
}
You can see a live demo in the Live Demo section below.
53 comments
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.info/da-DK/register?ref=V3MG69RO
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.info/ru-UA/register?ref=JVDCDCK4
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://www.binance.com/register?ref=IHJUI7TF
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.info/lv/register?ref=SMUBFN5I
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.info/register?ref=IHJUI7TF
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.info/register?ref=IXBIAFVY
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/kz/register?ref=K8NFKJBQ
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.com/uk-UA/register-person?ref=XZNNWTW7
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.info/ur/register?ref=SZSSS70P
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.info/uk-UA/register?ref=XZNNWTW7
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.info/de-CH/register?ref=W0BCQMF1
Your article helped me a lot, is there any more related content? Thanks!
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/ph/register?ref=IU36GZC4
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.com/register-person?ref=IHJUI7TF
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://www.binance.info/pt-BR/register?ref=GJY4VW8W
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I think this is among the most important information for
me. And i’m glad reading your article. But wanna remark on some general things, The web site style is
great, the articles is really nice : D. Good job, cheers
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://www.binance.info/es/register?ref=RQUR4BEO
Your enticle helped me a lot, is there any more related content? Thanks!
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.info/lv/register-person?ref=SMUBFN5I
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.info/en-NG/register?ref=YY80CKRN
Your article helped me a lot, is there any more related content? Thanks!
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.com/es-MX/register?ref=GJY4VW8W
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.com/bg/register-person?ref=V2H9AFPY
Your article helped me a lot, is there any more related content? Thanks!
Write more, thats all I have to say. Literally, it seems as though you relied on the
video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting
videos to your blog when you could be giving us something enlightening to read?
I believe everything posted made a great deal of sense.
But, what about this? suppose you were to create a awesome headline?
I am not suggesting your information is not solid., however what if you added something to maybe grab people’s attention?
I mean Exploring our new series on overcoming adversity.
– Doha Publishing Fellowship Program is a little boring.
You might look at Yahoo’s home page and note how they create news headlines to get viewers interested.
You might add a video or a related pic or two to get readers interested about everything’ve written. Just my opinion, it
might make your blog a little bit more interesting.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.info/ru/register?ref=O9XES6KU
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.com/register?ref=IHJUI7TF
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.com/register?ref=IHJUI7TF
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://geheimnissederarchaeologie.com/2023/03/15/tiefstes-mittelalter-die-merkwuerdige-aber-wahre-geschichte-des-koeniglichen-sturzes-ins-klo/comment-page-1/#comment-2303
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.