DEV Community

Bhanu Pratap Singh
Bhanu Pratap Singh

Posted on


Apply css that will not include specific class.

Here i wanted to show how i resolve css problem which i was facing.
I was stuck in one situation where i just wanted to apply css that will not include specific class.
I know it is making confusion lets take a example.

Alt Text

So here second .code css i don't want to apply on element which contain .language-javascript class but i will have .code class.
By this i made it will work.

You can also check other reference:

Top comments (0)

โฌ‡๏ธ The only reason people scroll to the bottom... because they want to read more. Create an account to bookmark, comment, and react to articles that interest you.