modular image replacement
Copy this code and paste it in your HTML
.replaced{
text-indent:-90000px;
background:transparent url(sprite.png") no-repeat top left;
display:block;
}
.unique_name{
width:300px;
height:100px;
background-position:-50px -300px;
}
<p class="replaced unique_name">Text to replace
</p>
Report this snippet
Comments
Subscribe to comments