View Full Version : CMotion Gallery - Vertical Alignment

08-13-2005, 11:59 AM
First, this forum has really helped me with all my scripts, so thanku...

Now, I would like to be able to vertically align the images in my CMotion gallery.

They are currently aligned to the bottom, where do I control this variable?


08-13-2005, 05:01 PM
I would take it that this is because not all of your images are the same height? If so, relative positioning can be added to each individual image:

<img style="position:relative;top:-50px;" src="dynamicbook1.gif" border=1>

If it is something else let me know. Oh, and for future reference:


08-13-2005, 05:32 PM
Script: CMotion Image Gallery Script

(sorry for not posting properly)

Correct, the images are not the same size, and I would like to be able to line them up nicely, either to the Top or Center.

Using the tag you suggest, I am able to manually specify each of the images height (relative to the gallery's starting point, i think...). Is there a way I can specify the alignment of the entire gallery? So that even though the images are different sizes, they will line up centered relative to each other (or to a Top line)

I don't have a URL to send, everything is still local on my pc...


08-13-2005, 06:40 PM
Put this in the head:

<style type="text/css">
#motiongallery img {
</style>change 'middle' to 'top' if you like.

08-14-2005, 07:35 PM
It works...

Thank u