PDA

View Full Version : Add text over images later on


gimpguy2000
03-08-2008, 10:15 PM
Hi again,

Ok, one thing and I think I have this CSS whipped, ok, well, a better handle on it. I have most of my page done, however, I wanted to add a link that appears over an image now as I forgot to prior. The one issue I can't beat is getting paragraphs and text to align or go where I want them to.

So, how do I do this? I tried for example..

<div style="position: relative etc....>
<p>link</p>
</div>

BTW, the image is just a .gif square and I want to be able to put the link in\over it. I did this with another image but it won't work for this now, don't know why. Better yet, is there a way to bring text or images to front or back? Is that what I'm looking for?

Thanks,

Paul

BonRouge
03-09-2008, 09:44 AM
Your best bet would be to use a background image.

http://www.w3.org/TR/CSS21/colors.html#propdef-background-image

gimpguy2000
03-09-2008, 03:13 PM
Thanks for the reply, but the text is going to be a link, so should I just make a link button then? Or rather, will it work with a link image?

Thanks,

Paul

BonRouge
03-09-2008, 10:20 PM
So you can put the image as the background to your link.

gimpguy2000
03-10-2008, 05:24 PM
Ok, thanks ;)

Cheers,

Paul