HTML is like this:
<ul>
<li>
<a>Menu 1</a>
</li>
<li>
<a>Menu 2</a>
<ul>
<li>Sub menu 2</li>
</ul>
</li>
<li>
<a>Menu 1</a>
</li>
</ul>
How can I select an <a> tag that has a sibling <ul> tag after it, with pure CSS?
(Which, in the example above, will be <a>Menu 2</a>.)
`, but not the way you want. See http://stackoverflow.com/questions/1817792/css-previous-sibling-selector
– j08691 Sep 08 '12 at 21:23