What is the rule counting with :nth-child()
? Is it simply a bug?
.info_row:nth-child(even) {
background: orange
}
<div>
<h2>Title</h2>
<div class="info_row">
<div>Category:</div>
<div>data</div>
</div>
</div>
If I wrap div.info_row
in other <div>
or delete <h2>
it is obvious, that .info_row:nth-child(even)
is being counted with <h2>
without .info_row
class.