Jump to content

Looking for a good tutorial...


jwwceo

Recommended Posts

I am looking for a tutorial on building a product gallery where products are diplayed in a grid format, like this [url=http://www.bustedtees.com]www.bustedtees.com[/url]. I mostly need to know how to get the search results to display 4 across. Right now, I can just get them to make a big list, where each entry is a row in a table....

Are there any tutorials on this online anywhere..or anyone have any tips on how to do this....
Link to comment
Share on other sites

Make a table with 4 <td> per row, like this:

[code]<table width='100%'>
<tr><td><img src=image1></td><td><img src=image2></td><td><img src=image3></td><td><img src=image4></td></tr>
<tr><td><img src=image1></td><td><img src=image2></td><td><img src=image3></td><td><img src=image4></td></tr>
</table>
[/code]
Only make sure the size of 4 images fit onto one table row.

Ronald  8)
Link to comment
Share on other sites

[quote author=jwwceo link=topic=105754.msg422567#msg422567 date=1156631126]
I need tips on the php part...
[/quote]

start a new table row
set a column counter to zero
create a table data cell, insert content, close table data cell
increment the column counter
if the column counter=4 close the table row
continue ...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.