View Full Version : PHP Photo Album autodesc %filename won't center below thumbnail like %i or %d does.

07-08-2011, 02:18 PM
1) Script Title: PHP Photo Album script v2.11

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

3) Describe problem: I figured out through various posts how to use the file name as the autodesc for each image. The problem is that, when I use the filename description, it won't center below the thumbnail, but appears to the right of the thumbnail. Can you tell me how I would get it to center below the thumbnail?

I'm using this script on https://dev.www.purdue.edu/recsports/programs/intramural_sports/champions.php and the images will be of actual champions, I'm just using the numbers as I develop the page.

07-09-2011, 01:54 AM
You edited out a <br> tag in there somewhere. You can compensate by setting the images to display block in the dev.www.purdue.edu/recsports/css/ddphpalbum.css file (around line #22, addition highlighted):

.photodiv img{ /*CSS for each image tag*/
border: 0;
width: 61px;
height: 54px;
cursor: hand;
cursor: pointer;
margin-right: auto;
margin-left: auto;
display: block;

07-18-2011, 01:17 PM
Sorry for the late reply but I just got back from vacation. Thank you for your help, again! As always, you fixed my problem.