I am look to develop span pairs - one containing text and another an image - as control/button/links on a web page; giving users both a text and graphic cue. I wish to synchronize the pseudo class for both elements in the pair, that is, should the mouse hover over the text span, the image hover pseudo class should turn on as well.
I there a way to achieve this? my example is below, pretty stock standard.
I'm able to get the text to change when the mouse hovers/actives the image by putting the pseudo class on the parent (see below) but I can't do that for the image.
I also tried to dispatch the event to the childNodes, but that didn't work either, I suppose a 'hover' is not the same as 'mouseover'. So this is not working
Having the text change when the user hovers or activates the image is OK, but sub optimal. Any further ideas appreciated.
Got it, not quite as suggested because I couldn't figure out how to use the img tag for this, but my solution is below.... now I will generalize for a servlet response.
... never found selectors very interesting until now!