/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<style type="text/css"> <!-- #div { display: block; width: 151px; height: 30px; background-image: url("image-name.jpg"); background-position: left top; background-repeat: no-repeat; } #div:hover { background-position: left bottom; } #div span { display: none; } --> </style> <a id="div" href="#"><span>Description</span></a>