Trying to get listings to flow in two columns
2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 10, 2008 (RSS)
Hi - I'm trying to get this content to flow into two columns. There is copy on the left and then a mini portrait on the right. So in fact it would be a two column table that repeats and then flows to a second column on the page. Any ideas? 	
<h1><?php echo $contactsRecord['title'] ?><br/> </h1> <table width="97%" border="0" cellpadding="0" cellspacing="0" id="pastShowslisting"> <tr> <?php foreach ($contactsRecords as $contactsRecord): ?> <td width="262" valign="top"><p><span class="date"><?php echo date("M, Y", strtotime($contactsRecord['date'])) ?></span></p> <p><?php echo $contactsRecord['content'] ?><br/> </p> <h1 class="playTitles"><?php echo $contactsRecord['title'] ?></h1> <p> </p></td> <?php $maxCols=2; if (@++$count % $maxCols == 0): ?> </tr> <tr> <?php endforeach ?> </tr> </table> <?php endforeach; ?> <?php if (!$contactsRecords): ?> No records were found!<br/> <br/> <?php endif ?>
Re: [chassa2556] Trying to get listings to flow in two columns
By Dave - October 10, 2008
Hi chassa2556,
Do you have an mockup page showing what you want it to look like?
And can you edit your post so the code shows properly? For some reason all the enters have been replaced with . It makes it hard to follow the code when it's one long line.
Thanks!
Do you have an mockup page showing what you want it to look like?
And can you edit your post so the code shows properly? For some reason all the enters have been replaced with . It makes it hard to follow the code when it's one long line.
Thanks!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com