Skip to main content
Home / Code Snippets / CSS / Standard CSS Image Replacement

Standard CSS Image Replacement

h1#logo {
   width: 200px; // width of image
   height: 100px; // height of image
   background: url(../path/to/image.jpg); 
   text-indent: -9999px;

This technique is credited to Mike Rundle and referred to as the Phark Method. There are many more techniques for CSS Image Replacement.

icon-link icon-logo-star icon-search icon-star