I have a list of rows of two types. Each row consists of a number of fields. So basically each row has the following structure:
<div class="views-row">
<div class="field1"></div>
.....
<div class="fieldN">
<span>
<div class="blue"> </div>
</span>
</div>
</div>
The question for me is that I need to apply CSS property for the parent div with class="views-row"
based on the class of the div, which is inside of the div class="fieldN"
. It may be either "blue" or "yellow".
So based on the class of a div tag which is stored inside of the span, I need to apply a border-left
property for outer div class="views-row
"
Could you please help me how can I implement this?