I would change the CSS rule for the background to li.li-class if it contain an h3. I have an HTML like this:
<div class="div-class">
<ul>
<li class="li-class">
<span itemprop="something">
<h3>Some title</h3>
</span>
</li>
</ul>
</div>
and the CSS for li background is:
.div-class ul li:nth-child(2n+1) { background: #f4f4f4; }
Where is the CSS selector for the li.li-class?
I have look this question Is there a CSS parent selector? and i try the code, but not work in this case. Thanks all