column layout question
| From: | Ivo Jansch | Date: | Tue, 29 May 2001 14:14:07 +0000 |
| Subject: | column layout question | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-837@lists.php.net to get a copy of this message | ||
Hi,
I have an array of items, and I want to devide the result in 2 columns,
like so:
<td>
item1<br>
item2<br>
item3<br>
</td>
<td>
item4<br>
item5<br>
</td>
I tried stuff like {if %sec.index% > %sec.loop% / 2} </td><td> {/if},
but that also puts a </td><td> between item 4 and 5.
Should be simple, but I can't get it to work :)
Any tips?
Greetings,
Ivo
--
Ivo Jansch <ivo@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl