This question has already been answered:
- Left neighbor selector 3 answers
Please specify, it is possible to assign properties to an external class by the condition of presence inside a certain class. Example: You need to assign properties to the class = "g-grid" if there is a class Test1 inside
<div class="g-container"> <div class="g-grid"> <div class="Test1"> </div> </div> <div class="g-grid"> <div class="Test2"> </div> </div> </div>