View Full Version : PHP Photo Album v2.11 Center Gallery Images

04-02-2011, 03:20 PM
1) Script Title: PHP Photo Album v2.11

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

3) Describe problem: I have been working with the PHP Photo Album v2.11 for a web site of a photographer. I have set up different galleries for different types of photographs. In the gallery.html file I have set the dimensions to:

dimensions: [100,3],

This will allow the page to dynamically fill each row with the maximum number of thumbnails for the size of the window. This works great and allows for different display sizes and screen resolutions. However, the images are lined up against the left side of the window/frame. I can change the gallery.css .photodiv to float: right; and line the images along the right side.

What I need is to be able to center the row of images in the window, or better yet display the images in the row equally/dynamically across the row such that regardless of the number or size of the images, the row of images goes from the left edge of the window to the right edge of the window. (Note: images are only set to a specific height, allowing the width to be scaled to the image file.).

Thanks for the help, love your site

The Captain