Using the :not() pseudo-class - CSS Tutorial

preview_player
Показать описание
The :not() CSS pseudo-class allows you to select elements that do not match a specified selector or list of selectors. Essentially, you can use this to match HTML elements that "are not" something else.

This can be very useful for building user interfaces due to their desirable ability of making your code universal and re-usable - it can really help your CSS follow the DRY principal.

In this video I take you through 3 main examples of how you can use the :not() pseudo-class.

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

I love how I've come from a newer tutorial of yours to this older one. I want to acknowledge how much you've improved as a speaker. You've become so much more fluid. But even in this vido, you're very easy for me to understand!

EnterOsaka
Автор

Some tutorials get way too technical and make it hard to follow wtf they're talking about. Yours was a simple example that explains it perfectly and easy to understand. Thanks.

love--dogs
Автор

Thank you very much for this video :) It was very clear and helpful! Loved the examples!

tymothylim
Автор

thank u so much man ur the best i was making fliterable image gallery and couldnt understand a thing u r great man

ezioauditore
Автор

Great little tutorial, any chance you can do a part 2 of this. e.g. what if I had a class of "glass" how can say not bottle AND not glass classes, or even not bottle OR not glass. Thanks

harag
welcome to shbcf.ru