Using a CMS that generates the following:
<ul class="list-unstyled">
<li>content 1</li>
<li>content 2</li>
</ul>
<ul class="list-unstyled">
<li>
<span>content 3</span>
</li>
<li>
<h2>content 4</h2>
</li>
</ul>
I would like to css select "content 4".
There is many <ul>
tags with class "list-unstyled".
Is there a way to select .list-unstyled > li > h2
where the li have a sibling li > span
This is nessesary so that I dont select more than just content 4. There is a possibility that there is a .list-unstyled > li > h2
in another place but without the sibling li > span
Hope I made myself clear