Page 1 of 1

Display details in table

Posted: Sun Jan 23, 2011 3:56 pm
by Rosaka
Hi, got a database of items, which I feed into an array. I got the array working in the table, but cant seem to style it to my needs.

I want to display three items side by side. So the image of the item and then its name below it, then two others like that by its side and then a new row.

Should I be using a list for this?

Re: Display details in table

Posted: Mon Jan 24, 2011 10:48 am
by social_experiment

Code: Select all

<table>
<tr><td><img />Description</td><td><img />Description</td><td><img />Description</td></tr>
<!-- more rows -->
</table>
Something like this? The easiest way would be to insert a line break <br /> between the image and the description but you can probably make it work with CSS.
What does your code look like?