Log in

View Full Version : Resolved Some photos off-center in Ultimate Fade-in slideshow



ddailey
11-06-2013, 10:04 PM
1) Script Title: Ultimate Fade-in slideshow

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

3) Describe problem: I set up the slideshow with photos that are a mix of landscape and portrait orientation. They are all either 600x450 or 450x600 pixels, so I made the black box to hold them 600x600. The photos that are 600 wide by 450 high are centered correctly, both vertically and horizontally. The photos that are 450 wide by 600 high all display to the right of the center. I don't know why this is, or if there is a way to fix it. Thanks for any help with this.

jscheuer1
11-07-2013, 02:51 AM
Ordinarily they would be automatically centered as well. Make sure you are using a standards invoking DOCTYPE for the page. Often that's all that's required to fix something like this. But it could be any of at least several other things.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

ddailey
11-07-2013, 04:02 AM
Ordinarily they would be automatically centered as well. Make sure you are using a standards invoking DOCTYPE for the page. Often that's all that's required to fix something like this. But it could be any of at least several other things.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

I fixed it. I had moved the slideshow from its default location on the page, and that is apparently how I got the photos off-center. I had made an error with the CSS positioning that moved the photos in relation to the box they were in. Thanks.