You cannot overlay an image on top of text using native CSS 2.1, which also will not be implemented in CSS 3.0. It is best to use a background image and still use the text in the <h1> and hide it with CSS.
<style> h1 { background:url(images/imagepath.png) no-repeat; height:50px; width:300px; text-indent:-10000px; } </style> <body> <h1>Insert Text Here</h1> </body>
source share