Ohans Emmanuel
Jul 22, 2017 · 1 min read
.facebook li:not(:last-child):not(:first-child):not(.facebook__search)

My bad Gurpreet Grewal . The selector targets EVERY llist li in the class, .facebook . i.e .facebook li

BUT…

The selector will exclude the last list item li:not(:last-child)
The selector will also EXCLUDE the the first list item li:not(:first-child)

Finally, the selector will exclude the list with the class, .facebook__search

In Summary…

The code says, “Select every list apart from the ones stated above “

I build complex frontends. I’m passionate about teaching intricate subjects. https://leanpub.com/reintroducing-react

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade