modular image replacement


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



Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. .replaced{
  3. text-indent:-90000px;
  4. background:transparent url(sprite.png") no-repeat top left;
  5. display:block;
  6. }
  7.  
  8. .unique_name{
  9. width:300px;
  10. height:100px;
  11. background-position:-50px -300px;
  12. }
  13. <p class="replaced unique_name">Text to replace</p>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.