LIMITING THE AMOUNT OF COLUMNS IN A MULTI COLUMN IMAGE DISPLAY - Aug 3rd, 2010


If you want to set up sets of columns that you want to wrap, you’ll have to wrap your table of columns inside a table
also.

Here’s a similar example to the above that lists sets of contact information next to images.



<table width="10%" border="0" align="left" cellpadding="0">
<tr>
<td align="left" >
<tr>
<?php foreach ($your_sectionRecords as $record): ?><?php foreach ($record['image'] as $upload): ?>
<td align="center" width="50%">


<table border="0" align="left" cellpadding="5">
<tr>
<td align="left" valign="top">

<table width="100%" border="0" cellpadding="5">
<tr>
<td align="left" valign="top"><a href="<?php echo $record['_link'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>"
width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" style="border:hidden"
/></a></td>
<td align="left" valign="top"><div class="yourclass"><?php echo $record['title'] ?></div>
<div class="yourotherclass"><?php echo $record['name'] ?><br />
<?php echo $record['tel_no'] ?><br /><?php echo $record['fax_no'] ?><br /><?php echo $record['email'] ?></div></td>
</tr>
</table>

</td>
</tr>
</table>

</td>
<?php $maxCols=4; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>
<?php endforeach ?> <?php endforeach ?>
</tr>
</table>





The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service