I have this code:
<cite>
<a id="john" href="javascript: void(0)">John</a>
<span>time</span>
<a>DELETE</a>
</cite>
<blockquote>hello there</blockquote>
This is my CSS:
cite #john + blockquote {color:black;}
I am aware this won't work but I need something to select only the blockquote
elements right after a cite
that contains an anchor with the ID john
.
I cannot change the HTML only the CSS. Any ideas please?
If this is impossible with CSS then a JavaScript solution would be welcome too.