span image hover in css?

hookerln

New Member
Hello friends. I want to change the image on hover but my code is not working.Code so far \[code\]<!DOCTYPE html><html><style>a.rollover span.displace { display: block; width: 150px; height: 44px; text-decoration: none; }a.rollover span.displace img:hover { background: url("images/red.png"); display: block; }</style><body><a href="http://stackoverflow.com/questions/14040946/#" class="rollover" title="Webvamp"><span class="displace"><img src="http://stackoverflow.com/questions/14040946/images/blue.png"/></a></body></html>\[/code\]Any help is highly appreciated...
 
Back
Top