Search posts, tags, users, and pages
Unleashing the Power of CSS :not() - Select What You Want, Exclude What You Don't!
Emore Ogheneyoma Lawrence
@Yoma · Nigeria
FrontEnd React JS Developer || Open Source Lover || Building Products
Markdown supported · ⌘↵ to post
Gemma Black
I didn't know about chaining:not, but that does look more readable. Thanks for the tip:
:not(.foo, .bar){ border: 2px solid red; }
And the use case for first and last elements is actually one I would definitely have a use for 👍
I am glad this article helped you. Thank you for reading too 😊
Gemma Black
I didn't know about chaining:not, but that does look more readable. Thanks for the tip:
:not(.foo, .bar){ border: 2px solid red; }And the use case for first and last elements is actually one I would definitely have a use for 👍