i'm trying to style any .header child divs that inside any parent divs with 'recipes' as its class.
i know i can just get .category-recipes .header
but they'll be a few parent div will change depending on where the user is. eg. 'category-recipes on category page, or 'single-page-recipes' on single posts page.
here's a simplified version of what a page looks like
<div class="category-recipes">
<div class="otherdiv"></div>
<div class="otherdiv"></div>
<div class="header"></div>
</div> <!-- end of category -->
i tried it and it didnt work.
div[class*="recipes"] .header{
margin-bottom: 40px;
}
is it possible to get a child or parent in with this kind of selector?