robenolt
11-01-2010, 11:00 PM
So I have a table with 6 columns and about 200 rows. The odd numbered rows all have cells with 60X60px images and all the even numbered rows have text. (so the first row has a picture and then under the picture is the name of the image). Everything must be ordered alphabetically. The problem is
that each time I want to add a new image I have to edit most of the coding. Is there a way to align tables in columns of six alphabetically without having to redo the most of the code each time? like maybe there is some type of script I can use? or is there an easier way to code it?
The code looks like this
<table border="1" bordercolor="#000000" cellpadding="0" width="450px">
<tr>
<td><img src=""></td>
<td><img src=""></td>
<td><img src=""></td>
<td><img src=""></td>
<td><img src=""></td>
<td><img src=""></td>
</tr>
<td>Name of the image</td>
<td>Name of the image</td>
<td>Name of the image</td>
<td>Name of the image</td>
<td>Name of the image</td>
<td>Name of the image</td>
</table>
that each time I want to add a new image I have to edit most of the coding. Is there a way to align tables in columns of six alphabetically without having to redo the most of the code each time? like maybe there is some type of script I can use? or is there an easier way to code it?
The code looks like this
<table border="1" bordercolor="#000000" cellpadding="0" width="450px">
<tr>
<td><img src=""></td>
<td><img src=""></td>
<td><img src=""></td>
<td><img src=""></td>
<td><img src=""></td>
<td><img src=""></td>
</tr>
<td>Name of the image</td>
<td>Name of the image</td>
<td>Name of the image</td>
<td>Name of the image</td>
<td>Name of the image</td>
<td>Name of the image</td>
</table>