PDA

View Full Version : Image position in slide-show



bcls
03-28-2006, 01:02 PM
Ultimate Fade-in slideshow (v1.5)
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.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

jscheuer1
03-28-2006, 07:34 PM
You may find this post (http://www.dynamicdrive.com/forums/showpost.php?p=25959&postcount=14) helpful.

Or, check out the entire thread (http://www.dynamicdrive.com/forums/showthread.php?t=7203) for more context and info.

bcls
03-29-2006, 09:36 AM
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 :(

jscheuer1
03-29-2006, 02:06 PM
Actually, a table is the oldest trick in the book for centering images.

bcls
03-29-2006, 04:07 PM
Well yes, but we shouldn't be using tables for layouts these days, only for tabular purposes, for accessibility reasons.

jscheuer1
03-29-2006, 04:31 PM
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.

bcls
03-30-2006, 08:37 AM
Fair point.

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