If you have 'images on' and 'css on' then the above text is an image.
If you have 'images on' and 'css on' then the above text is an image link.
There are so many ways of doing this that I have lost count, a few of them are listed here image-replacement
But this is the way I would normally do it should anyone be interested.
This way requires an empty <em> tag to hold a background image which is then used to hide the text and satisfies the usual 'images off / css on' and 'css off' conditions. I am sure that it must have a *IR acronym already allocated and I do not claim it as my own.
It is fairly straightforward and easy to implement BUT does have a small problem in that you cannot use transparent or opaque images as the text will show through. However for most cases this is a suitable method.
If you don't mind the text appearing around the image when resized large enough then you can leave out the height/width/overflow styling of the h2.ir. You can also add title="Image Replacement" to the em tag if you wish so that it will appear on hover. Finally, you could always make the image area large enough to cover any text resizing (as in my example).
1st March 2006
A change of background image on hover added.
Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.
Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.