Sunday, August 18, 2013

CSS Image Replacement

This CSS technique will show your picture inside H1 tag using css.

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.
Disqus Comments