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
https://forums.phpfreaks.com/topic/18755-looking-for-a-good-tutorial/
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)
[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 ...

Archived

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

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