DEV Community

Discussion on: Is there a way to exclude elements with a particular default styling from a CSS selector?

Collapse
baenencalin profile image
Calin Baenen Author

I want to style ALL elements in my body EXCEPT any like <script> or <link>, that I OR an external program may put in the HTML document.

Collapse
adam_cyclones profile image
Adam Crockett

But why? 😎

I know this sounds anoying to keep asking why but I have a feeling you are trying to blanket target all elements and style them in some way, in the standard model of css, it is easy to avoid styling elements which don't need to be styled by styling explicitly those that you do want to style. So I guess I want to know how did you arrive at such a problem?