Jump to content

Archived

This topic is now archived and is closed to further replies.

jwwceo

Looking for a good tutorial...

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

Share this post


Link to post
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)

Share this post


Link to post
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 ...

Share this post


Link to post
Share on other sites
Would be a lot easier when you explained what the problem is. Just "I need tips on the php part..."doesn't say very much on what exactly you are looking for.

Ronald  8)

Share this post


Link to post
Share on other sites
Thank you Andy...that was way easier than I thought it would be....

Share this post


Link to post
Share on other sites

×

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.