CSS Sprites example


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



Copy this code and paste it in your HTML
  1. .button {
  2. display: block;
  3. width: 263px;
  4. height: 42px;
  5. background: url("music_production.png");
  6. }
  7.  
  8. .button:hover {
  9. background-position: 0 -42px;
  10. }
  11.  
  12. <a href="" class="button"></a>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.