Advanced Search

Results 1 to 5 of 5

Thread: flexislide and vertical alignment (middle)?

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

    Default flexislide and vertical alignment (middle)?

    1) Script Title: Flexislide

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

    3) Describe problem: I'm having flexislide run a slideshow of images resized within 800pix wide, and 520pix high. Some are panorama format, meaning they are - say - only 250pix high, and flexislide positions them at the top within the slideshow "window".

    Is it possible to align them vertically in the middle of the show, similar to what would be in html valign="middle"?


    Best regards
    Thorir V

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

    Default

    (a humble bump)

  3. #3
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 959 Times in 948 Posts
    Blog Entries
    15

    Default

    As far as I know there's no quick way in CSS to vertically align content. However, the TABLE tag has long supported such an attribute. You might try altering the output of the slideshow to use a table plus the aforementioned attribute. Inside the script, you can try adding the code in red below:

    Code:
    crossrotateobj.innerHTML='<table><tr><td valign="middle">'+contentcontainer+'</td><tr><table>'
    DD Admin

  4. The Following User Says Thank You to ddadmin For This Useful Post:

    thorirv (02-01-2010)

  5. #4
    Join Date
    Jan 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply. I tried your suggestion and it didn't work, so I'll be looking into alternatives.

    Best
    Th

  6. #5
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 959 Times in 948 Posts
    Blog Entries
    15

    Default

    You might take a look at Fade In Slideshow. The script contains a feature that explicitly centers each image within the slide dead center inside the display area.
    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
  •