How to show in two columns?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 2, 2010   (RSS)

Re: [esteban] How to show in two columns?

By Chris - March 2, 2010

Hi esteban,

Would putting a <br/> after every second image solve the problem? If so, try adding the code in red below:

<?php foreach ($partnerzyRecords as $record): ?>
<?php foreach ($record['banner_120x60'] as $upload): ?>
<a href="http://<?php echo $record['link'] ?>" title="<?php echo $record['title'] ?>"> <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /></a>

<?php $maxCols=2; if (@++$count % $maxCols == 0): ?><br/><?php endif ?>
<?php endforeach ?>
<?php endforeach ?>


I hope this helps. Please let me know if you have any questions.
All the best,
Chris

Re: [chris] How to show in two columns?

By esteban - March 2, 2010

Yes, thanks :-)