Results 1 to 5 of 5

Thread: Ultimate Fade-in slideshow not centering

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in slideshow not centering

    I can't work out why it's not centering my images. None are being resized as they all fit within the 750 width and 450 height parameters. Any ideas?



    HERE'S the DynamicDrive software page

    thanks!
    Last edited by jscheuer1; 12-13-2010 at 05:10 AM. Reason: remove hotlink

  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

    This script doesn't resize your images. That can be arranged, but is best done in an image editing program. Generally images for the web should be optimized and (re)sized to be of the dimensions they will be presented to user as and with the least amount of bytes as possible.

    The script will center your images of varying sizes within the presentational area of the slideshow provided that its dimensions are as large or larger than the widest image's width, and the tallest image's height. That is unless the page's layout uses <center> tags, align="center" attributes, and/or text-align: center; styles in such a way as frustrates the script's ability to do so.

    The layout on the page linked to in your post does so at least via one or more uses of the align="center" attribute. The best solution to that is to redesign the page so as not to rely upon that, using instead the margin: 0 auto; style in conjunction with an explicit width to center elements. But that can get complicated to explain. If you want help on that, ask in the css section.

    A quick fix on that page would be to set the align="left" attribute on the target container (addition highlighted):

    Code:
    <div align="left" id="fadeshow1"></div>
    - John
    ________________________

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

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

    Default

    John - that didn't work at all for me. I removed all the center align tags and put in the margin: 0 auto; style and it turns out like this - all left-aligned:



    I'm not a coder - so I'm probably not understanding something.
    Last edited by jscheuer1; 12-13-2010 at 05:09 AM. Reason: remove hotlink

  4. #4
    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

    That's not what I said to do. I said that if you want to you can, but that it's complicated. And that if you wanted to learn that you should open up a new thread in the css section for help laying out your page without align="center" attributes.

    What I did suggest was keeping what you had and simply adding the highlighted to the fadeshow1 division:

    Code:
    <div align="left" id="fadeshow1"></div>
    - John
    ________________________

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

  5. #5
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John - we were both correct. Your code worked - AND - I did not understand you. When you further explained I corrected it and it now works. Thanks!
    Last edited by jscheuer1; 12-13-2010 at 05:09 AM. Reason: remove hotlink

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
  •