In the following HTML, I want to apply a hover effect to the header h2, upon hover of the image img. Is there a css selector to do that, or another
"Is there a css selector to do that?"
This doesn't exist in the current state of CSS yet (as of Selectors Level 3) .. but when Selectors Level 4 is more widely implemeneted, there will be a parent selector:
E! > F - "An E element, parent of an F element"
Unfortuntely it will be quite some time before this is implemented as the Module is still in the Working Draft stage ..