how to add image title in autowrap table

W

Wendi

I have a table with a bunch of images. For a given margin, the table would
decide how many images would fit across the screen depending on the
resolution.

For e.g., if there were five images in the table, for the resolution
1024x768, all five images would fit in one row. For a lower resolution such
as 800x600, the images would be spanned across two rows.

<body leftmargin="60" rightmargin="60">
<table>
<tr>
<td>
<img src="image1.jpg">
<img src="image2.jpg">
<img src="image3.jpg">
<img src="image4.jpg">
<img src="image5.jpg">
</td>
</tr>
</table>
</body>

The probelm is that I would like to add a title underneath each image. How
can I do that without losing the auto-wrapping feature?

TIA
-wen
 
S

spaghetti

Wendi said:
For e.g., if there were five images in the table, for the resolution
1024x768, all five images would fit in one row. For a lower resolution such
as 800x600, the images would be spanned across two rows.

You can do this easily with some CSS. Checkout this link:

http://www.alistapart.com/stories/practicalcss/

Scroll down to "The Question" section, and read away! It's an excellent
little tutorial.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top