I do not think that this is possible if only the element you want to change is not a descendant or a native element of the hanging element, in which case you can do:
#myElement:hover #myElementDescendent { background-color: blue; } #myElement:hover + #myElementSibling { background-color: blue; }
Of course, you can always use jquery for this:
$("#anelement").hover( function() { $("otherelement").css("background-color", "blue"); });
See the differences here.
source share