Results 1 to 3 of 3

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

  1. #1
    Join Date
    Jun 2010
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album autodesc %filename won't center below thumbnail like %i or %d does.

    1) Script Title: PHP Photo Album script v2.11

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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.../champions.php and the images will be of actual champions, I'm just using the numbers as I develop the page.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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):

    Code:
    .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;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    esmoldt (07-18-2011)

  4. #3
    Join Date
    Jun 2010
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    John,
    Sorry for the late reply but I just got back from vacation. Thank you for your help, again! As always, you fixed my problem.

    Eric

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •