I have this code:
<html>
<head>
<style type="text/css">
* > ul li:nth-child(4n+3) { color: red; }
</style>
</head>
<body>
<ul>
<li id="A" class="u">1</li>
<li>
<ol>
<li id="B" class="u">2.1</li>
<li id="C" class="g">2.2</li>
<li id="D" class="u">2.3</li>
<li id="E" class="g">2.4</li>
</ol>
</li>
<li id="F" class="u">3</li>
</ul>
</body>
</html>
In this it selects 2.3
and 3
but I don't understand how this happens.
My thought is: It selects simultaneously two elements in odd position relative to the parent element. But is 2.3
really the 3rd position or 7? I am really stuck, please help.