July 18, 2018

Replace Text with Image in CSS

The snippet of code below is a common practice to replace title from a text-based title to an image: h1 {text-indent:-9999px;background:url(“title.jpg”) no-repeat;width:100px;height:50px;} Explanation: text-indent:-9999px; throws your text title off screen,