Posted By

JimSangwine on 05/05/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

spee66


Standard CSS Image Replacement


 / Published in: CSS
 

  1. h1#logo {
  2. width: 200px; // width of image
  3. height: 100px; // height of image
  4. background: url(../path/to/image.jpg);
  5. text-indent: -9999px;
  6. }
  7.  
  8. /* This technique is credited to Mike Rundle and referred to as the Phark Method. */

Report this snippet  

You need to login to post a comment.