I'm working with a code block that looks like this.
<div class="wrapper">
<div class="btn-group">
<div class="child">
</div>
</div>
</div>
My goal is to style the "child" div without using direct styling, something similar to:
.child{
color:red;
}
I want to apply the styles of the "wrapper" div to the "child" div, but not to the "wrapper" itself.
I attempted the following approach but it didn't work. Any suggestions or alternative solutions?
.wrapper > .btn-group + .child{
color:red;
}