CSS Rollover sprite not working
Hi Folks,
I've been trying to fix this for hours now and I've just run out of ideas why it doesn't work.
It should be a simple image link - a 200 x 100 pixel image which contains two images - (200x50) stacked on top of each other.
The inital image works fine but doesn't change on hover.
The link works fine but the hover image doesn't appear. I've checked that the image works by swapping the background poitions and the image works fine so it can only be something I've done wrong in the CSS.
Here's the code I have on the page
------------------------------------
<div class="more">
<a href="page-detail.php?id=<?php echo $row_rs_deals['id']; ?>">More Details Here</a>
</div>
------------------------------------
And the CSS that goes with it
------------------------------------
.more a {
text-indent: -9000px;
width:200px;
height:50px;
float:right;
background: url(../images/detail-sprite.png) 0px 0px;
margin-bottom:20px;
}
.more a: link {
text-indent: -9000px;
width:200px;
height:50px;
float:right;
background: url(../images/detail-sprite.png) 0px 0px;
}
.more a: visited {
text-indent: -9000px;
width:200px;
height:50px;
float:right;
background: url(../images/detail-sprite.png) 0px 0px;
}
.more a: hover{
text-indent: -9000px;
width:200px;
height:50px;
float:right;
background: url(../images/detail-sprite.png) 0px 50px;
}
.more a: active{
text-indent: -9000px;
width:200px;
height:50px;
float:right;
background: url(../images/detail-sprite.png) 0px 50px;
}
------------------------------------
Anyone got any idea why it doesn't work?