I have 4 levels of divs. I need to add css properties to the "ml-accordion-pane" class only if the "myhiddenagenda" class is present.
<div class="mk-accordion-pane" style="display: block;">
<div class="wpb_raw_code wpb_content_element wpb_raw_html">
<div class="wpb_wrapper">
<div class="myhiddenagenda">
</div>
</div>
</div>
</div>
I tried the following but it didn't work
.mk-accordion-pane > .wpb_raw_code > .wpb_wrapper > .myhiddenagenda {
color:#555;
background-color:#000;
}
anyone got any ideas?