/ Published in: CSS
A simple way to style a link using a CSS sprite. On hover, the image is moved upwards by the image height to reveal the rollover image.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#emailUs { display: block; width: 107px; height: 23px; background: url("emailUs.gif") no-repeat 0 0; } #emailUs:hover { background-position: 0 -23px; } #emailUs span { position: absolute; top: -999em; }
URL: http://www.elated.com/articles/css-rollover-buttons/