PDA

View Full Version : How do I super-impose text over an image?


hamburger
11-22-2003, 06:48 AM
I am writing a perl script that displays business cards with user details on it.

I do not want to load a business card for every user but rather use several images that users can select from and super impose the user’s information over the image associated with the users choice when ever their card is displayed.

Afrow UK
11-22-2003, 07:38 PM
If you are displaying this on an html doc, you should set the image either as a background pic of the whole document, or place it as the background image of a table.

Use CSS to only repeat the background image once for the whole page:

<body style="background-image: file.gif; background-repeat: no-repeat; background-possition: top left;">

-Stu

dswimboy
11-25-2003, 04:33 AM
you could also put the business card image in a layer below a layer with the text of the user. writing a javascript to change the business card would be a cinch. including a cookie in the javascript would also be doable. you may not need a perl script.