I want to replace the text of a url to an image. I am trying following:
HTML:
<div class="img">
<a href="#">link</a>
</div>
CSS:
.img a{
width: 96px;
height: 96px;
background: url("image.jpg");
text-indent: -9999px;
}
It would still show the text. I want the image instead of the text.
PS. I don't want to put the image in the html, ie.
<div class="img">
<a href="#"><img src="image.jpg" alt="image" /></a>
</div>