I have produced a home page which contains a large image
which is set to increase its size to fill the width of the users'
Ideally, I would like to have a caption positioned a little
way below the image, which maintains postition relative to the
bottom edge of that image. However, because the image maintains
aspect ratio, (ie can get taller even though window stays the same
height) I am having difficulty coming up with a way of achieving
this using any of the positioning aids I have some across.
Is anyone able to tell me how, or even whether, I can do this
I would think that a VBox would allow you to do this. If the
horizontalAlign="center" and the caption is the second child, it
should stay centered right below the image, separated from it by
the value of the verticalGap style property.