View Full Version : CMotion Image Gallery

11-19-2008, 12:56 PM
Script: CMotion Image Gallery

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?


11-19-2008, 03:40 PM
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.

11-19-2008, 03:52 PM
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?

11-19-2008, 03:57 PM
Anywhere (and in any manner) that would apply. My choice would probably be in a stylesheet, using a rule something like (for example):

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

11-19-2008, 04:05 PM
Ah, I see what you mean.

Thanks again :)