My goal is to create a single-page, scrolling website that features an array of images with corresponding captions fixed at the bottom of the page. I plan on using unique image IDs to trigger a hide/show event as each image approaches a certain distance from the top of the window. Currently, I have placed each caption within the table containing its respective image. To display the images, I am using tables due to difficulty in responsively centering them both vertically and horizontally on the page, which is a separate issue I am actively working on.
Below you will find the relevant code snippet:
<html>
<body>
<a id="1">
<table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%">
<tr valign="middle"><td align="center" colspan="2">
<img src="31.jpg" width="40%" style="padding-top:30px; max-width:672px">
</td></tr>
<tr valign="bottom"><td style="padding:0 0 12 12" height="30">
Cover for a book of photographs
</td><td align="right" style="padding:0 12 12 0">
<a href="#27" style="padding-right:12px">Up</a><a href="#2">Down</a>
</td></tr>
</table>
</a>
<a id="2">
<table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%">
<tr valign="middle"><td align="center" colspan="2">
<img src="22-2.jpg" width="75%" style="padding-top:30px; max-width:1260px">
</td></tr>
<tr valign="bottom"><td style="padding:0 0 12 12" height="30">
Title and double-page spread for a book of photographs
</td><td align="right" style="padding:0 12 12 0">
<a href="#1" style="padding-right:12px">Up</a><a href="#3">Down</a>
</td></tr>
</table>
</a>
...
</body>
</html>