Answers for "how to check if the class exist in css"

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 "how to check if the class exist in css"

Browse Popular Code Answers by Language