I have a panel-group with 6 elements :
<div class="panel-group" id="accordion1" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
1
</div>
<div class="panel panel-default">
2
</div>
<div class="panel panel-default js_subscription_open hidden">
3
</div>
<div class="panel panel-default">
4
</div>
<div class="panel panel-default">
5
</div>
<div class="panel panel-default">
6
</div>
</div>
I want to make these panels to alternates color (zebra stripe) using CSS only,
So I applied this formula :
.panel:nth-child(even) {
background-color: white
}
My problem is that I dont want that this formula be applied to the div with the "hidden" class (third div) ... I want to "jump" this div ...
I'm seeking for something like :
.panel:not(.hidden):nth-child(even) {
background-color: white
}
but this is not working !! Any idea ?