PHP gallery, thumbnail listing

Posted by Benjamin on Stack Overflow See other posts from Stack Overflow or by Benjamin
Published on 2010-04-18T20:48:30Z Indexed on 2010/04/18 20:53 UTC
Read the original article Hit count: 386

Filed under:
|
|

Hi everyone,

I am planning a dynamic PHP photo gallery and having difficulty deciding on the best way to display the thumbnails after they have been retrieved via MySQL. I considered using an inline unordered list but this resulted in the thumbs being stacked one on top of the other (touching). Also tried a table but not sure how I would start the next row after x number of thumbnails.

Any suggestions on page layout for this purpose? I will be using Lightbox to cycle through the photos themselves, that isn't the issue.

Also, would a while() loop be best for fetching the list of thumbs and inserting the appropriate HTML?

Thanks!

-Ben

© Stack Overflow or respective owner

Related posts about photo

Related posts about gallery