1 reply [Last post]
Daytona955i
Offline
newbie
Last seen: 17 years 21 weeks ago
Joined: 2004-08-27
Posts: 1
Points: 0

I have an idea to create a picture of a bookshelf for a Geneology page. I want the spine of each book to have the family name obtained from a database. The database end is no problem but I'd like to take the list of names I get and overlay that on an image of books or individual books per username. Is this feasable in CSS? I have some limited experience with CSS but I was hoping for some guidance before I start this.

I will be using perl's CGI and DBI to display the web page and get the database information.

indy_jones
indy_jones's picture
Offline
Regular
USA
Last seen: 17 years 23 weeks ago
USA
Timezone: GMT-5
Joined: 2004-08-16
Posts: 11
Points: 0

dynamic text over images

Without seeing your page I'm going to take a stab in the dark and give you some advice. If you just need to display dynamic text over images, this can be done very nicely using CSS.

What you want to do is make the image of the book the background image for whatever div you are using now. It should look something like this:

div.book{
 .......
 background-image:  url(images/whatever.jpg);
 background-repeat: no-repeat;
 .......
}

Then you can style any text you want over this image using whatever CSS you want. You can actually place all your text style in the same div CSS, saving you lots of time and making your code lean and mean! Hope this helps.