---
title: "Comment by Gemma Black on \"Using the CSS :not() pseudo-class\" | Hashnode"
description: "I didn&#39;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 f"
url: "https://hashnode.com/posts/using-the-css-not-pseudo-class/642beab27f9f2fae769b70d6/comment/643006157d188b3a2bde93ad"
---

[Discussion](https://hashnode.com/posts/using-the-css-not-pseudo-class/642beab27f9f2fae769b70d6)

Comment [Using the CSS :not() pseudo-class](https://hashnode.com/posts/using-the-css-not-pseudo-class/642beab27f9f2fae769b70d6)

[Gemma Black](https://hashnode.com/@GemmaBlack)

[Apr 7, 2023](https://hashnode.com/posts/using-the-css-not-pseudo-class/642beab27f9f2fae769b70d6/comment/643006157d188b3a2bde93ad)

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 👍

[Emore Ogheneyoma Lawrence](https://hashnode.com/@Yoma)

[Apr 9, 2023](https://hashnode.com/posts/using-the-css-not-pseudo-class/642beab27f9f2fae769b70d6/comment/643006157d188b3a2bde93ad#reply-6432de4894d1164842d9c0ba)

I am glad this article helped you. Thank you for reading too 😊
