Results 1 to 3 of 3

Thread: Can Swiss Army Slideshow top-align images?

  1. #1
    Join Date
    Sep 2007
    Location
    Maui
    Posts
    642
    Thanks
    284
    Thanked 15 Times in 15 Posts

    Default Can Swiss Army Slideshow top-align images?

    1) Script Title: Swiss Army Slideshow

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

    3) Describe problem: I love this SA slideshow (thank you, John). However, a client has forced me to do a page design with a really tall header that pushes the rest of the page down such that you can see only the top of the slideshow when the page loads. Because I have defined a square space for the ss to accommodate vertical and horizontal images, when viewing only the top half of the ss, it appears that the images are jumping up and down because the horizontal images are centered vertically within the space. I realize if all the images were exactly the same size this would not happen; but, seeing as they are not, I was wondering if there is a way to have all the images align with the top of the space instead of being centered vertically.

    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

    Assuming this is the only Swiss Army show on your page, add to your stylesheet:

    Code:
    #canvas0_0 td, #canvas0_1 td {
    	vertical-align: top;
    }
    If you want more help:

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


    Not Required:

    For greater future flexibility, use the drop in replacement introduced here:

    http://www.dynamicdrive.com/forums/blog.php?b=18

    Once you have its:

    http://home.comcast.net/~jscheuer1/s...les/swiss_2.js

    script, use it instead of the original swissarmy.js script. Everything else may remain the same. But now you can do more in customizing the show(s).
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    kuau (09-28-2010)

  4. #3
    Join Date
    Sep 2007
    Location
    Maui
    Posts
    642
    Thanks
    284
    Thanked 15 Times in 15 Posts

    Default

    That did it! Thanks so much. It really improves the look. I'll also update the script. You are like a magic man fixing everyone's problems.

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
  •