Hey there, I'm currently facing an issue where I've tried multiple solutions but none seem to be working..
I have a scenario with two HTML divs
<div class="lmn-tab-item"></div>
<div class="lmn-tab-item lmn-tab-item-active active"></div>
Is it possible to apply CSS to the lmn-tab-item class if the div also contains the class lmn-tab-item-active?
In other words, I want to set the default color for the first div as color:red
and if the second div has lmn-tab-item-active, then set the color as color:green
.
I attempted the following method:
div[class^="lmn-tab-item-active"][class*=" "]:before {
color: green!important;
}
.lmn-tab-item {
color: red!important;
}
Unfortunately, this approach is not producing the desired results. Any assistance would be greatly appreciated!