<style type="text/css">
<!--
div:nth-child( 3n + 2 ) { background-color: green }
-->
</style>
<div>
<div>one</div>
<div>two</div>
<div>three</div>
<div>four</div>
<div>five</div>
<div>six</div>
<div>seven</div>
<div>eight</div>
<div>nine</div>
<div>ten</div>
<div>eleven</div>
</div>
Why is the outer div affected by this style sheet rule even though it hasn't got a sibling and is the only child of a parent element?
1
and one element.
– Volker Ackermann Sep 02 '13 at 19:14