Log in

View Full Version : centering the Ultimate Fade-In Slideshow



akmporter
02-06-2014, 07:51 PM
1) Script Title: Ultimate Fade-In Slideshow

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

3) Describe problem:

I would love some help in getting the slideshow centered within my div. Tried a couple things but really can't get it to work. How can I get the slideshow centered on my page. My page is http://www.saltcityart.com.

Thank you.

jscheuer1
02-07-2014, 01:44 AM
Add the highlighted:


<div class="columns">
<div class="content">
<div id="homepageslideshow" class="slideshow" style="margin-left: 25px;">
</div>
</div>
</div>

akmporter
02-07-2014, 02:42 PM
Add the highlighted:


<div class="columns">
<div class="content">
<div id="homepageslideshow" class="slideshow" style="margin-left: 25px;">
</div>
</div>
</div>

Is there any way to do this without forcing a margin left? I'd like it to just center it on the page and adapt to different size screens.

akmporter
02-07-2014, 04:13 PM
I just needed:

margin: 0 auto;

The problem more had to do with my DIV width. Once that was solved the margin code worked like a charm to center it.