close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cant align repeating table

Thread began 9/19/2013 1:00 pm by bentulk | Last modified 9/19/2013 3:28 pm by Jason Byrnes | 1105 views | 5 replies |

bentulk

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']; ?>&amp;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>&nbsp;</td>
</tr>
<?php } while ($row_rsItems = mysql_fetch_assoc($rsItems)); ?>
</table>

Thanks,

Ben

Attached Files
webassistRepeatingTable.txt
Sign in to reply to this post

Jason ByrnesWebAssist

Please send a link where i can see the problem, i cannot troubleshoot design problems without seeing them.

Sign in to reply to this post

bentulk

Hi Jason,
Sorry. Here is a link:

http://166.78.180.64/galleryNew.php?sort=rankName&show=10

Thanks,

Ben

Sign in to reply to this post

Jason ByrnesWebAssist

change the table tag to:
<table width="750" align="center" cellpadding="50" id="repeated_table_1" style="margin: auto;">

Sign in to reply to this post

bentulk

Thanks Jason,
It works perfectly. You are a true genius!

Before I start messing around with the table formatting, can you give me any clues if there is a specific css tag with this repeating table that I should be looking for?

Thanks again,

Ben

Sign in to reply to this post

Jason ByrnesWebAssist

no, there is no specific css from the table.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...