Results 1 to 6 of 6

Thread: How To Center Image In Slide Show

  1. #1
    Join Date
    Jul 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How To Center Image In Slide Show

    1) Script Title: Manual DHTML Slideshow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Join Date
    Feb 2008
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    It is on the bottom of this page:

    http://www.dynamicdrive.com/dynamici...nslideshow.htm

  5. #5
    Join Date
    Jul 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by leatherlips View Post
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •