PDA

View Full Version : Simple Controls Gallery



zee
02-20-2009, 12:36 AM
1) Script Title: Simple Controls Gallery

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.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...

ddadmin
02-20-2009, 04:20 AM
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/showthread.php?t=41983 I may update the script with such an ability the next time it's updated.

zee
02-20-2009, 04:32 AM
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...