Results 1 to 8 of 8

Thread: Center the Ultimate Fade-in Slide Show (v2.1)

  1. #1
    Join Date
    Feb 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Center the Ultimate Fade-in Slide Show (v2.1)

    ) Script Title: Ultimate Fade-in Slide show (v2.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem: Can you tell me how can I center my slideshow? It looks like <p align="center"> is there, but maybe in the wrong place?

    4) Site: http://stephaniesuggests.com/

    Thank you!
    Stephanie
    Last edited by StephanieT; 02-26-2010 at 04:26 AM.

  2. #2
    Join Date
    Feb 2010
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I recently set up the fade in slide show and this worked for me

    <div id="slide1" style="MARGIN-LEFT: -45px"></div>

    Just adjust the px value to center on your page

  3. #3
    Join Date
    Feb 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Peanutville ... where should I place the code?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Peanut is talking about directly inserting a CSS margin into your empty DIV that houses your slideshow. Technically the generic way to center the slideshow is with the following margin definition:
    Code:
    <div id="fadeshow1" style="margin:auto"></div>
    Or setting "margin" to "auto". In order for this to work in IE, make sure your page contains a valid doctype at the very top, such as:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    DD Admin

  5. #5
    Join Date
    Feb 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect! Thanks!

  6. #6
    Join Date
    Feb 2010
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by StephanieT View Post
    Thanks Peanutville ... where should I place the code?
    Place the code where you would like the fade in slide show to be on your page
    Last edited by peanutville; 02-26-2010 at 10:36 PM.

  7. #7
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Centering Images

    Anyone having an issue centering the actual images in the slideshow. I've centered the actual slideshow div with no problem. but inside my images are always aligning to the left edge and throwing them off center.

    Any ideas?

  8. #8
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Nards, please post a link to the problem page. It sounds like you may have large images within your slideshow that aren't cached in time for the script to properly determine their dimensions (in order to center them) the first go around.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •