I need the first .tab class that directly follows the .tab-wrapper class to be visible, while the others should remain hidden
<ul class="tabs">
<li>1</li>
<li>2</li>
</ul>
<div class="tab-wrapper">
<div class="tab">VISIBLE</div>
<div class="tab"></div>
<div class="tab">
<ul class="tabs">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
<div class="tab-wrapper">
<div class="tab">VISIBLE</div>
<div class="tab"></div>
<div class="tab"></div>
</div>
</div>
</div>
My CSS isn't working as expected. The first .tab of the second .tab-wrapper isn't displaying. Can someone help me fix this issue? Thanks
.tab-wrapper .tab {display: none;}
.tab-wrapper .tab:first-child {display: block;}