View Full Version : Centering the PHP Photo Album

02-22-2006, 08:58 PM
script: PHP Photo Album http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm


The problem I'm having with this script isnt really a problem. I can't figure out how to justify the picture array to the center. I thought it would be easy, just changing

float: left;

to float: center or middle but this throws off the rest of the coding apparently and puts all the pictures in a verticle line instead of the grid i defined.

Normal <center> in the HTML doesnt work.. P aligns dont work.. div aligns dont work. I could be doing them wrong or missing it completely, but any help would be great. Thanks.

02-22-2006, 09:54 PM
I think this may be one of the cases where you need to use a three-column table, and put it in the middle column.