I have a unordered list like:
<ul>
<li>Element one
<ul>
<li><a>Element two</a>
<ul>
<li><a>Element three</a></li>
</ul>
</li>
</ul>
</li>
</ul>
Now if I try to select the <a>
-element of "Element two". I would do it like the following:
ul ul li:first-child > a
This will select also the following nested <a>
element. See this fiddle:
How can this be solved?