For some reason I expected this to work:
But it didn't work. And I was going to ask a question about it. But in playing with it, I found out something interesting. You can style child elements using the :hover pseudo-element as long as you also specify a style for the a element itself:
Code:
<style type="text/css">
a:hover span {
color:red;
}
</style>
<a href="">some text and <span>a span</span></a>
Code:
<style type="text/css">
a:hover {
color:black;
}
a:hover span {
color:red;
}
</style>
<a href="">some text and <span>a span</span></a>