Display details in table

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
Rosaka
Forum Newbie
Posts: 13
Joined: Mon Jan 10, 2011 2:00 pm

Display details in table

Post 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?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Display details in table

Post 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?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply