Produst on 2nd row showing right to left

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 10, 2014   (RSS)

By kitka - July 10, 2014

I have  a page where i want to show equipment in row of 4.
I find when i have only 5 or 6 items the next row always starts on the right. and if there is sometimes 6 splits and leaves a gap in the middle

Is there any way to make the products line up from left to right.

Here is the sample page......
http://www.economyequipmentsales.com/construction-equipment.php

so in this case the Johnson Sweeper would be on the right side below the Asphalt Paver etc etc.

Here is the code i am using for this section......

<font size="+1"color="#660000"><strong>Our Newest Additions...<hr></strong></font>

<?php foreach ($equipment_for_saleRecords as $record): ?>
<?php foreach ($record['main_image'] as $index => $upload): ?>
<div class="three columns"><font face="Arial,Helvetica,sans-serif" size="-1">Location: &nbsp;<strong><?php echo htmlencode($record['location']) ?></strong></font><br/><br>
<a href="<?php echo $record['_link'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" border="0" /></a><br><br><strong><?php echo htmlencode($record['title']) ?></strong><br/><br/><strong><font color="#FF0000">CDN $<?php echo htmlencode($record['price']) ?></font></strong><br/>
</font><br/><br><br><br></div>
<?php $maxCols=4; if (@++$count % $maxCols == 6): ?></div><?php endif; ?>
<?php endforeach ?>
<?php endforeach ?>
<?php if (!$equipment_for_saleRecords): ?>
<strong>Sorry we have nothing matching your description at this time</strong><br/><br/>
<?php endif ?>

jim albert

By kitka - July 10, 2014

Beautifull. it worked great.... Thanks a lot Claire...

jim albert