Β© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Kars van Iersel
I develop websites and web apps
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...
Emore Ogheneyoma Lawrence
FrontEnd React JS Developer || Open Source Lover || Building Products
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
FrontEnd React JS Developer || Open Source Lover || Building Products
very nice article Kars π