3
I have the following structure in HTML:
<div class="panel">
...
</div>
<div class="panel">
<div class="controls">
...
</div>
</div>
The class panel
has some general styles and I would like to change the padding-right
her only when she contains as her daughter the class controls
.
I know if it was the other way around, if I wanted to change the class controls
only if she were the daughter of panel
, the selector in CSS would look:
.panel .controls {
...
}
Or:
.panel > .controls {
...
}
But and to change the class panel
only if she has the class as her daughter controls
? There’s a dial for that?