Results 1 to 3 of 3

Thread: Simple Controls Gallery

  1. #1
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery

    1) Script Title: Simple Controls Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.htm

    3) Describe problem: I am creating my thumbnails 240px tall to fill the height of a portrait gallery div 240px x 190px.
    How can I center the image in the div?
    As it is now the image starts in the upper left. I understand that it will crop the image. I would like to center the image.
    Thanks for any help...

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm there's no easy way to do this at the moment unfortunately. In order to center images that are larger than the gallery itself (ie: 240px), the script would need to know, among other things, the widths of the images in advanced. This is a similar request to: http://www.dynamicdrive.com/forums/s...ad.php?t=41983 I may update the script with such an ability the next time it's updated.
    DD Admin

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

    zee (02-20-2009)

  4. #3
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply.
    It would be great to let the image center and crop all 4 sides.
    If you have an idea how to do this I would try it here on my install.

    That was posted yesterday...
    I did search.

    Thanks in advance...

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
  •