How do I make the background image change on hover, for my span?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-06T23:05:18Z Indexed on 2010/04/06 23:13 UTC
Read the original article Hit count: 167

Filed under:
|

Suppose I have a span:

<span class="myspan"></span>

.myspan{
background: url(image.png) top left no-repeat;
}

How do I make it so that when people hover my span, it shows "image_hover.png"?

© Stack Overflow or respective owner

Related posts about css

Related posts about html