Re: need a photo caption on larger linked image



In article
<185da27a-37d9-4f60-9c5b-a39b408b10ca@xxxxxxxxxxxxxxxxxxxxxxxxxxx
m>,
John <john.yates@xxxxxxxxx> wrote:

Rather than try to explain, please see:

http://jytangledweb.org/photos/2010/pittsburgh/oct/


That is *really bad* HTML!

I have clicking on an image giving a larger image, but I want
to also put a (different) caption under the larger picture.
(Photo by xxxx).

Since this will grow to hundreds, if not thousands, of images, I don't
want to code a new html file for every photo.

How can I get a caption on the larger version with html contained
in the single html file above?


There is no way of avoiding taking steps to make individual
captions for each enlargement. There are a number of ways of
doing this boring work. One way is to incorporate the caption
into the enlargement via image software. That avoids making lots
of HTML files!

Another way is to make as many html pages as there are
enlargements and to simply put in the caption in HTML text like

<div><img src="pics/enlargement1" alt="...">Unique caption
text</div>

with CSS along the lines of

img {display: block;}

for the caption to be underneath.

Or

img {float: left;}

for the Caption to be to the right and to flow under if necessary.

You might be surprised how quickly the work can go if you work
smart and duplicate a template and use some GREP or Find and
Replace.

I think I would simply put the one proper fixed caption on the
one HTML page (like the one you have the thumbnails on) and
simply let the link to enlargement go to *just the enlarged pic*,
user uses back button or key command on browser to get back.

--
dorayme
.



Relevant Pages