Cant align repeating table
Hi Jason,
I have created repeating table to display products, etc. The problem I'm having right now is that I cant align the repeated table in the centre of the page.
When I select the table and choose 'align right', or 'align left', the table does as it should and displays on that side of the page. However, when i choose 'display centre', it displays on the left of the page.
Any help would be greatly appreciated.
I have attached page code.
Repeating table part is pasted below:
?>
<table width="750" align="center" cellpadding="50" id="repeated_table_1">
<?php do { ?>
<tr>
<td></td>
</tr>
<tr>
<?php
// RepeatSelectionCounter_1377032465167 Begin Loop
$RepeatSelectionCounter_1377032465167_IterationsRemaining = $RepeatSelectionCounter_1377032465167_Iterations;
while($RepeatSelectionCounter_1377032465167_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1377032465167 || $row_rsItems){
?>
<td><a href="gallery_detail.php?item_id=<?php echo $row_rsItems['itemid']; ?>&sort=<?php echo((isset($_GET["sort"]))?$_GET["sort"]:"") ?>"><img src="<?php echo $row_rsItems['galurl']; ?>" /></a><br /><?php echo(wordwrap($row_rsItems['title'], 25, "<br />\n", true)); ?></td>
<?php
} // RepeatSelectionCounter_1377032465167 Begin Alternate Content
else{
?>
<td><img src="<?php echo $row_rsItems['galurl']; ?>" /></td>
<?php } // RepeatSelectionCounter_1377032465167 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1377032465167 && $RepeatSelectionCounter_1377032465167_IterationsRemaining != 0){
if(!$row_rsItems && $RepeatSelectionCounter_1377032465167_Iterations == -1){$RepeatSelectionCounter_1377032465167_IterationsRemaining = 0;}
$row_rsItems = mysql_fetch_assoc($rsItems);
}
$RepeatSelectionCounter_1377032465167++;
} // RepeatSelectionCounter_1377032465167 End Loop
?>
</tr>
<tr>
<td> </td>
</tr>
<?php } while ($row_rsItems = mysql_fetch_assoc($rsItems)); ?>
</table>
Thanks,
Ben