/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
a { Â Â Â Â Â Â Â display: block; Â Â Â Â Â Â Â background: url(sprite.png) no-repeat; Â Â Â Â Â Â Â height: 30px; Â Â Â Â Â Â Â width: 250px; } Â a:hover { Â Â Â Â Â Â Â background-position: 0 -30px; }