Posted By

jack_armleyyahoocouk on 11/17/10


Tagged

image OOCSS


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

abbyabigale


modular image replacement


 / Published in: 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  

You need to login to post a comment.