How can I place text over an image without using using absolute positioning? I already tried using z-index and relative positioning, but it kept moving my image as well as the text. Also, I would like to do this without using the image as a background to a div because I need to make the image a link. Any ideas?
Try negative margins. For example: <img alt="Something" src="Filename.gif" /> <p style="margin-top: -100px;">Text</p> HTML:
I think if you set the z-index for the image to -500 and have seperate div's for both of them you will get what you want. Good luck!
There is a way to Dynamically generate text over base Images, that is of course if you often change the text over that image. It is through the php image funcition you need GD function for that. There are plenty of tutorials available for that. Here is a link from php.net: php.net/manual/en/ref.image.php