I'm trying to target a link that ONLY occurs after an image, but they're in separate tags like so:
<p>
<a href=whatever>
<img stuff>
</a>
</p>
<p>
<a href=something>This should be a different color</a>
This "works":
p + p>a {
color: red;
}
But it's a bit inspecific. I want to do something like this, but I think it's looking for the sibling of the IMAGE not the PARAGRAPH when I do this:
p>a>img + p>a {
color:red
}
So the first example works, but might trigger on something I didn't intend. The second doesn't work at all and maybe it can't. I'd love to use classes or ids, but this is in a project using markdown which gets translated to HTML. The only way I have to target elements is by general structure and not attributes (unless you know another way?)