I'd like to select the last <p>
but only if the next sibling is NOT an <ul>
<!-- Select this p element -->
<div>
<p>...</p>
<img>
</div>
<!-- Do NOT this p element -->
<div>
<p>...</p>
<ul>...</ul>
</div>
This is not working:
<style>
div p:last-of-type, div p:not(+ul) {
...
}
</style>