Have navigation list of pictures, want to add captions?

P

(Pete Cresswell)

e.g.
------------------------------------
<html>
<body>

<a href="Pix\40th\Al Miller.jpg" target="showframe"> <img
src="Pix\40th\ThumbNails\Al Miller.jpg"</a><p>
<a href="Pix\40th\Atzrott, Elaine.bmp" target="showframe"> <img
src="Pix\40th\ThumbNails\Atzrott, Elaine.jpg" </a><p>

</body>
</html>
----------------------------------

Shows two thumbnails and zooms to a full-sized picture if/when user clicks on
thumbnail.

I'd like to add a caption (the file name of the pic..) under each thumbnail
and/or under the zoomed picture.

For the thumbnail navlist, myy guess is that it's something TB added after the
"src..." statement.

Can anybody point me to the syntax?
 
B

brucie

In alt.html (Pete Cresswell) said:
<a href="Pix\40th\Al Miller.jpg" target="showframe"> <img
src="Pix\40th\ThumbNails\Al Miller.jpg"</a><p>

you're leaning the wrong way. lean/over/this/way
Shows two thumbnails and zooms to a full-sized picture if/when user clicks on
thumbnail.

heres one with 16 thumbs:
http://butterflies.usenetshit.info/
I'd like to add a caption (the file name of the pic..) under each thumbnail
and/or under the zoomed picture.

the simplest way:

<p><a href="x"><img src="..." alt="blah"><br>caption</a></p>
 
N

Nik Coughin

(Pete Cresswell) said:
e.g.
------------------------------------
<html>
<body>

<a href="Pix\40th\Al Miller.jpg" target="showframe"> <img
src="Pix\40th\ThumbNails\Al Miller.jpg"</a><p>
<a href="Pix\40th\Atzrott, Elaine.bmp" target="showframe"> <img
src="Pix\40th\ThumbNails\Atzrott, Elaine.jpg" </a><p>

</body>
</html>
----------------------------------

Shows two thumbnails and zooms to a full-sized picture if/when user
clicks on thumbnail.

I'd like to add a caption (the file name of the pic..) under each
thumbnail and/or under the zoomed picture.

For the thumbnail navlist, myy guess is that it's something TB added
after the "src..." statement.

Can anybody point me to the syntax?

<div style="text-align: center;">
<a href="some1.jpg" target="showframe">
<img src="thumb1.jpg" alt="" style="display: block;">
Caption 1
</a>
</div>
<div style="text-align: center;">
<a href="some2.jpg" target="showframe">
<img src="thumb2.jpg" alt="" style="display: block;">
Caption 2
</a>
</div>

The style attributes are CSS. Google for some tutorials.
 
P

(Pete Cresswell)

RE/
<img src="thumb1.jpg" alt="" style="display: block;">

This is working. Thanks.

Now, for the tarbaby part: in IE, 'block' wraps the title tightly - i.e. there
is no vertical space between the pic and the file name. That's how I want it.

OTOH, Mozilla adds some space.


From FrontPage's HTML view I doped out:
---------------------------------------------------
<head>
<style>
<!--
p { margin-top: 0; margin-bottom: 0 }
-->
</style>
</head>
---------------------------------------------------
but, as expected, that tightens up the area between pic#1's title and pic#2's
image...not what I need.


I'm guessing I have to somehow modify how "display: block" is implemented...but
where?
 
S

Starshine Moonbeam

brucie said:
In alt.html (Pete Cresswell) said:


you're leaning the wrong way. lean/over/this/way


heres one with 16 thumbs:
http://butterflies.usenetshit.info/


the simplest way:

<p><a href="x"><img src="..." alt="blah"><br>caption</a></p>

Here's a question I've been wondering about:

Why can you caption a table but not an image? It seems that a caption
would stop people from abusing the alt attrib. Was this just oversight
or is there a reason for it?
 
B

brucie

In alt.html Starshine Moonbeam said:
Why can you caption a table but not an image?

you can title an image
It seems that a caption would stop people from abusing the alt
attrib.Was this just oversight or is there a reason for it?

you would need to redesign an <img> element not to be empty so a
<caption> type element could be made part of it. you couldn't just stick
in a <caption> close to the <img> somewhere and hope people could work
out that they have a relationship with each other.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top