Search posts, tags, users, and pages
Intro In my previous post I wrote a bit about the :not() selector and I got a lot feedback that people never heard of this element. So I figured I would dedicate a post just to the :not() CSS selector. What is the :not() selector in CSS? The :not() i...
Kars van Iersel
@Karsvaniersel · Amsterdam, the Netherlands
I develop websites and web apps
Hi, my name is Kars van Iersel. I'm a Software Engineer, located in The Netherlands. I enjoy creating high quality and delightful websites and web applications.
Markdown supported · ⌘↵ to post
Emore Ogheneyoma Lawrence
very nice article Kars 👍
I use the :not() pseudo-class mostly when I want to target the last or first elements in divs, be it a nav list or any normal list
.className:not(:last-child){} 🚀 to the rescue
Emore Ogheneyoma Lawrence
very nice article Kars 👍