Having trouble targeting a specific navigation item in a div using an attribute value in CSS. Here's the code I have so far:
My goal is to target the navDepts
class.
HTML
<div class="primary-nav" data-name="about">
<div class="subNav">
<ul class="navDepts">
<!-- <li></li>-->
</ul>
</div>
</div>
CSS
.primary-nav [data-name="about"] .subNav ul .navDepts {
display: none!important;
}