Results 1 to 5 of 5

Thread: CMotion Gallery - Vertical Alignment

  1. #1
    Join Date
    Aug 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post CMotion Gallery - Vertical Alignment

    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?

    Thanku,
    Whitewolf

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,030
    Thanks
    44
    Thanked 3,211 Times in 3,173 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <img style="position:relative;top:-50px;" src="dynamicbook1.gif" border=1>
    If it is something else let me know. Oh, and for future reference:

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Script: CMotion Image Gallery Script - Alignment

    Script: CMotion Image Gallery Script
    http://www.dynamicdrive.com/dynamici...iongallery.htm

    (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...

    thankx

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,030
    Thanks
    44
    Thanked 3,211 Times in 3,173 Posts
    Blog Entries
    12

    Default

    Put this in the head:
    Code:
    <style type="text/css">
    #motiongallery img {
    vertical-align:middle;
    }
    </style>
    change 'middle' to 'top' if you like.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Aug 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up :)

    It works...

    Thank u


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
  •