PDA

View Full Version : Ultimate Fade-in slideshow (v2.1) - Image centering within the slide show



erikgrammer
04-20-2010, 07:08 PM
Ultimate Fade-in slideshow (v2.1)
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

Apologies for posting twice but just noticed the other thread was marked as "resolved" so my post may not have been seen. I am using the script to display images in both landscape & portrait mode and the portrait images are not centered, even after the images are cached. Here is an example site:

http://www.wehobungalow.com/mobile.html

I have been unable to determine how to correct and would appreciate advice.
Thanks,
Erik

jscheuer1
04-21-2010, 03:55 AM
Using and/or relying upon the <center> tag, the align="center" attribute and/or the the text-align: center; style to center anything other than text on your page is generally a bad idea. But, as far as I can see, you have done so. The quick fix in your particular case would be to change (from your page's HTML source code):



<td colspan="3">

<div align="center"><div id="fadeshow1"></div></div><br /></td>

to (addition highlighted):


<td colspan="3">

<div align="center"><div id="fadeshow1" align="left"></div></div><br /></td>

erikgrammer
04-21-2010, 06:14 PM
Thanks for your help,
Erik