PDA

View Full Version : How To Center Image In Slide Show



leatherlips
02-15-2008, 07:22 PM
1) Script Title: Manual DHTML Slideshow

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

3) Describe problem: I want to be able to center my images in my slideshow, but they only seem to appear on the left. I've tried align="center" in various spots but they are not working. Any ideas? Thanks.

jscheuer1
02-15-2008, 07:47 PM
The images are already centered in the slide show by default. Perhaps you mean that you want to center the slide show on the page? That would depend upon the rest of your page. Also, if there isn't enough width available for the slide show in the spot on your page where it is located, then the images may not look centered, even though they are centered. But that depends upon your layout, not the slide show.

If you need more help, please be specific as to what it is you want to center, and in relation to what - and:

Please post a link to the page on your site that contains the problematic code so we can check it out.

leatherlips
02-15-2008, 08:15 PM
Thanks for the quick reply!

I'm sorry if I wasn't more clear in my initial post. I am talking about the slideshow itself being centered in the page.

Here is my URL using the script:

http://www.wcbuildingfutures.com/presentation.htm

You'll notice that the navigation links are centered in the page but not the images themselves.

It's probably something really obvious but I can't find it.

I appreciate your help.

jcallen04
02-15-2008, 08:57 PM
It is on the bottom of this page:

http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

leatherlips
02-16-2008, 12:28 AM
I figured it out. Here is what I did.

In step two, the first line of code is:

<table border="0" cellspacing="0" cellpadding="0" align="center">

I simply added the part in red.

jscheuer1
02-16-2008, 01:40 AM
I figured it out. Here is what I did.

In step two, the first line of code is:

<table border="0" cellspacing="0" cellpadding="0" align="center">

I simply added the part in red.

That's exactly what I was going to suggest for this particular script.