Select all elements of a given class, except for a particular Id
Eg: If there is a class with name “entry-content” for every pages. And we are intending to give a particular css property for “entry-content” except for home page with id “home”
then, the proper css selector is :not()selector
div.entry-content:not(#home) { color:grey; min-height:400px; }
Leave a comment