I feel a bit of a spanner asking this question as I feel like I should know the answer. However I've not found the answer after searching the forum:
Is it possible to use :hover on anything other than a text link?
I see examples of using :hover all over but they're always like this: td a:hover{...}
Although this will change the appearance of the table cell, it relies on hovering over a text link contained within it rather than simply the td itself.
How do I change the following css so that hovering over the span will change the span's background?
.myspan{
background: url("red_flower.gif" );
}
.myspan:hover{
background: url("blue_flower.gif" );
}
<span class="myspan">Text over a changing background</span>
Thanks,
Andy











Bookmarks