Answers for "if i want to check is div not has this class what i should do"

CSS
1

apply css if class not present

.container:not(.container2) > .myDiv {
  color: red;
}
Posted by: Guest on August-31-2021

Code answers related to "if i want to check is div not has this class what i should do"

Browse Popular Code Answers by Language