Jump to content

Problem with displaying in 3 colums


adamjblakey

Recommended Posts

Hi,

 

Can anyone see why this won't display in 3 columns? The code looks fine to me but it is displaying in one line. I am using smarty template system.

 

<table width="550" border="0" cellspacing="0" cellpadding="0">
{foreach from=$results item=result name=results}
{$item eq '0'}
{$items eq "\t<tr><td><tr>\n"}
{$itemed eq "\t</tr>\n"}
{if $item eq '0'} {$items} {/if}
            
  <td valign="top"><table width='175' border='0' cellspacing='0' cellpadding='0'>
    <tr>
      <td height='23' background='images/top-ads-bar.JPG'><table width='100%' border='0' cellspacing='0' cellpadding='3'>
        <tr>
          <td><a href='site-details.php?id={$result.id}' class="sheaderlinks">{$result.sitename}</a></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td valign="top" ><table width='100%' border='0' cellspacing='0' cellpadding='8'>
        <tr>
          <td class="topnavmiddle">
	  <center>{$result.description}
            </td>
        </tr>
      </table></td>
    </tr>
  </table>
  </td>
			{$item++}
			{if $item eq '3'} {$item eq '0'} {/if}
			{if $item eq '0'} {$itemed} {/if}

						  {/foreach}
                  </table>

 

Cheers,

Adam

Link to comment
https://forums.phpfreaks.com/topic/67421-problem-with-displaying-in-3-colums/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.