PDA

View Full Version : HTML Picture Questions


earmystore.com
07-21-2004, 01:49 PM
I have a new website that I am working on. i have a photo page that i have thumbnails on and when you click on a thumbnail it opens a larger version of the pic in a new window. In that new window I would like to include a short description as well. Is that possible? and if so how would you do it? To see what I am talking about you can go to

http://www.earmystore.com/photo.php

and click on the 1st picture of the pow stone -- in that new picture that pops up that is where i want the description to go.


thanks for any help,

john

DCElliott
07-21-2004, 04:15 PM
You actually have a number of problems here besides having captions. I see you are using php. You can actually create a php "wrapper" file that you feed the filename of the larger picture as well as any caption text. That would save having separate HTML files for each larger picture. You may need a popup script to create an appropriately sized window.

For some guidance on how to create captioned thumbnails, take a look at the technique here: http://www.alistapart.com/articles/practicalcss/ - (the part with the images and captions). It would keep the pics and text aligned, even if the image wraps instead of what you have now where the alignment goes off if the user changes font size.

DE