Topic: Caption position too far below image in gallery [SOLVED]

Hi, my juicebox caption position is based on the size of the largest image in the gallery, when I would like its position to be based on the current image.

Here's my config:

captionPosition="BOTTOM"
enableDirectLinks="TRUE"
maxCaptionHeight="200"
showSmallThumbNav="FALSE"
captionBackColor="rgb(255,255,255)"
captionBackTopColor="rgb(255,255,255)"
textShadowColor="none"
imageShadowColor="rgb(255,255,255)"
backButtonPosition="NONE"
textColor="rgb(0,0,0)"
imageVAlign="TOP"
thumbsPosition="TOP"
thumbsVAlign="TOP"
thumbPadding="10"
imagePadding="0"
imageScaleMode="SCALE"
maxThumbColumns="10"
maxThumbRows="1"


It looks like the position of jb-area-caption element is absolute. Is there any way to change the processing on this to always set the caption directly below the image?

Here's what it looks like now...

http://i.imgur.com/AaRQ73e.png?1

Thanks for any help. Sorry in advanced if this is a duplicate.

Re: Caption position too far below image in gallery [SOLVED]

The large gap between your main image and captions is partly due to setting imageVAlign="TOP".
This positions the image at the top of the gallery's image area rather than centering it vertically (which would balance the space equally above and below the main image).

The fact there is space at all is due to the gallery's image area having a different aspect ratio to your main image.
If you reduced the height of your gallery (try a fixed height such as '800px' or maybe '600px'), you should see the gap reduced, too.
Please see this FAQ for more details:
My Juicebox gallery shows too much space above or below the main image, how do I fix this?

Looking at the layout in your screenshot, setting captionPosition="OVERLAY" might also be a suitable compromise.

I hope one of these suggestions helps.

It would likely prove to be difficult to reposition the caption area by applying custom CSS to Juicebox's internal classes. As well as the difficulty in achieving the desired effect, Juicebox would have no knowledge of this modification and it might have unwanted, unforeseen knock-on effects (for example if the browser window is resized and the gallery needs to be redrawn). Also, custom modifications are not guaranteed to work with future versions of Juicebox.
I would recommend that you configure the gallery using the available configuration options. You might not be able to layout your gallery exactly as you like but you are less likely to run into problems.

Re: Caption position too far below image in gallery [SOLVED]

Hi Steven,

The galleryHeight option exactly addressed my issue.

Thanks very much for the suggestion.

Chad

Re: Caption position too far below image in gallery [SOLVED]

I'm glad my suggestion worked.
Thank you for posting back to let me know.