Home › Forums › CSS › Styling li except when a parent div has specific class › Reply To: Styling li except when a parent div has specific class
November 9, 2015 at 7:45 am
#234720
Senff
Participant
I want everything with class=”b” green, except when found in any parent with class=”a”.
Based on that, you can just target the parent class, no?
.a .b {
background-color: transparent;
}