DEV Community

loading...

Discussion on: The CSS :not() Selector

Collapse
tadhglewis profile image
Tadhg Lewis • Edited

Common one I've used when adding margin to bottom of list elements or right margin on a horizontal list but not the last element

example:not(:last-child)
Collapse
ayoazeez26 profile image
Ayoazeez26 Author

This particular one is very useful, thanks for sharing

Forem Open with the Forem app