
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.
18 comments
Downloaded the b29betapk just now. Seems smooth. Is it easy to install and go? I had some issues before. Any thoughts? Download now and try your luck: b29betapk
Hey guys! Just discovered taiking88.net, and it’s pretty legit. The interface is smooth, and I’m already seeing some action. Definitely worth checking out if you’re looking for a new spot to play. Check it out for yourself: taiking88
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/sl/register?ref=GQ1JXNRE
Heard some buzz about Tai99win and had to see for myself. Site looks fresh and the games are decent. If you are feeling lucky, see if this is for you:tai99win.
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.
Yo, 12bet bong88! Been using this site for a minute now. Solid selection of games and the payouts are pretty quick. Definitely worth checking out if you’re looking for a reliable online platform. 12bet bong88
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.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
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!
Hey all, if you’re looking for something new, I took a look at Wim55. The interface is clean, and it didn’t give me any headaches, which is a bonus! Here’s the link: wim55
Just getting started with online betting? Startbet’s not a bad shout. Everything’s laid out nicely, so it’s easy to figure out even if you’re a complete noob. Check it: startbet
Yo, G888 has some decent promos running. I managed to snag a bonus when I signed up. Worth a look if you’re into that kind of thing. Give g888 a try!
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.
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. https://www.binance.com/da-DK/register?ref=V3MG69RO
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?