PDA

View Full Version : Center Image



guytang
11-21-2007, 01:39 PM
1) Script Title: Ultimate Fade-In Slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: I have images of different sizes. I would like to center the image in the given width and height of the fade show. However, the image is going to the top left corner of the space specified. How can I center each image given it's different size? My development page is http://65.109.28.235/newindex.htm

jscheuer1
11-21-2007, 03:18 PM
Use:

http://www.dynamicdrive.com/dynamicindex14/swissarmy/index.htm

If you set its width to the largest width image and set its height to the tallest height image, it will center differently sized images. It can also be configured to not use any controls or text, thus making it look just like the other slide show, and it can fade too.