DEV Community

Discussion on: 10 Useful and Hard-To-Remember CSS Selectors

Collapse
xtender profile image
π™ΏπšŠπšžπš• π™ΊπšŠπš–πš–πšŠ

One of my favorite selectors is the a:not([class]) selector for styling default anchor elements which are mostly used in RTEs texts.
This way you can specify and tweak the style for them without the danger to modify other anchor links like in the navigation for example.

Collapse
proticm profile image
Milos Protic Author

Yes, not is quite powerful and useful for dynamic styling. It might as well have been on the list with the others.