Build logic for 2-column table?
Posted: Tue Feb 14, 2012 3:39 am
HI!
I am new to this forum so I say welcome to everyone to my life
I am having som trouble finding the logic in building a table...
I have a table like
<table><tr><td></td></tr></table>
In that table I list som categories with some things in each category, like
category1
thing1
thing2
thing3
category2
thing4
thing5
category3
thing6
thing7
category...
thing...
The number of categories and things is dynamic.
Now I want a table with 2 columns, like
<table>
<tr>
<td>category1
thing1
...
...</td>
<td>category2
thing3
...
</td>
</tr>
<tr>
<td>category3
thing5
...
...</td>
<td>category4
thing8
...
...</td>
</tr>
<tr>
<td>category...
thing...
...</td>
<td>category...
thing...
...</td>
</tr>
</table>
But I get confused when I try to build the logic...
Anyone who has slightly bigger brains than me??
I am new to this forum so I say welcome to everyone to my life
I am having som trouble finding the logic in building a table...
I have a table like
<table><tr><td></td></tr></table>
In that table I list som categories with some things in each category, like
category1
thing1
thing2
thing3
category2
thing4
thing5
category3
thing6
thing7
category...
thing...
The number of categories and things is dynamic.
Now I want a table with 2 columns, like
<table>
<tr>
<td>category1
thing1
...
...</td>
<td>category2
thing3
...
</td>
</tr>
<tr>
<td>category3
thing5
...
...</td>
<td>category4
thing8
...
...</td>
</tr>
<tr>
<td>category...
thing...
...</td>
<td>category...
thing...
...</td>
</tr>
</table>
But I get confused when I try to build the logic...
Anyone who has slightly bigger brains than me??