Link Rollover as CSS Sprite


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. a {
  2. display: block;
  3. background: url(sprite.png) no-repeat;
  4. height: 30px;
  5. width: 250px;
  6. }
  7.  
  8. a:hover {
  9. background-position: 0 -30px;
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.