Results 1 to 7 of 7

Thread: Image position in slide-show

  1. #1
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image position in slide-show

    Ultimate Fade-in slideshow (v1.5)
    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    Hi there,

    I'd like to use differently oriented images in the same slide-show. The problem with that is that for the slide-show height to accomodate the portrait images, it leaves a big gap between landscape images and the text beneath the slide-show.

    Is there a way to make the images align to the bottom/middle rather than the top of the slide-show or am I going to have to add blank space at the top of my landscape images?

    Many thanks

    bcls

  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

    You may find this post helpful.

    Or, check out the entire thread for more context and info.
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that - I did have a look around but did not see this.

    Not the most Web standard of fixes though is it? Once I knew where in the code to fiddle I had a go at using a div instead but vertical-align is being its usual elusive self

  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

    Actually, a table is the oldest trick in the book for centering images.
    - John
    ________________________

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

  5. #5
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well yes, but we shouldn't be using tables for layouts these days, only for tabular purposes, for accessibility reasons.

  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

    If you are worried about accessibility, don't use a javascript slideshow in the first place. Virtually anyone who can view the slideshow will have no problem with its use of a table.
    - John
    ________________________

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

  7. #7
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Fair point.

    I should probably do more research into how screen readers work.

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
  •