I want to make a series of boxes with text above an image. Each box must have the same exact code, so I can't do something like create a 3x3 table. What HTML element can I use that will align the text and image, and auto-arrange each box depending on the width of the page? If I made a table for each one, each new table would start on a new line, which I don't want:

Here's what I am trying:
<span>
<div style="width:280px;" align="center">
<a href="http://www.google.com">The Zone</a>
</div>
<div style="width:280px;">
<img width=280px height=140px src="http://i4.ytimg.com/vi/ZAunjLrWtdU/0.jpg">
</div>
</span>
<span>
<div style="width:280px;" align="center">
<a href="http://www.google.com">The Zone</a>
</div>
<div style="width:280px;">
<img width=280px height=140px src="http://i4.ytimg.com/vi/ZAunjLrWtdU/0.jpg">
</div>
</span>
<span>
<div style="width:280px;" align="center">
<a href="http://www.google.com">The Zone</a>
</div>
<div style="width:280px;">
<img width=280px height=140px src="http://i4.ytimg.com/vi/ZAunjLrWtdU/0.jpg">
</div>
</span>
<span>
<div style="width:280px;" align="center">
<a href="http://www.google.com">The Zone</a>
</div>
<div style="width:280px;">
<img width=280px height=140px src="http://i4.ytimg.com/vi/ZAunjLrWtdU/0.jpg">
</div>
</span>
<span>
<div style="width:280px;" align="center">
<a href="http://www.google.com">The Zone</a>
</div>
<div style="width:280px;">
<img width=280px height=140px src="http://i4.ytimg.com/vi/ZAunjLrWtdU/0.jpg">
</div>
</span>
Last edited 2011
|