Results 1 to 5 of 5

Thread: CMotion Image Gallery

  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CMotion Image Gallery

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

    Hello - I am using CMotion Image Gallery script for the first time and have found it easy to implement. I have disabled the links on images, so it is a simple line of thumbnails.

    However - images are displayed in the gallery with a 4px gap between each. Is it possible to control this gap - to dictate the pixel size of gap, or to remove it altogether?

    Thankyou!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Remove all spaces and line breaks from between the image tags in your image train. Once that is done, the gap between images will be 0, and may be precisely set using css style if desired.
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, John.

    I have closed the gap by removing line breaks.

    So - if I want to set a gap of 1 pixel, can you confirm where in css I would do that?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Anywhere (and in any manner) that would apply. My choice would probably be in a stylesheet, using a rule something like (for example):

    Code:
    #trueContainer img {
    margin: 0 1px;
    }
    Which would create a 2 pixel gap between each image, with a one pixel margin at the beginning and end of the train.
    - John
    ________________________

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

  5. #5
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ah, I see what you mean.

    Thanks again

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
  •