PDA

View Full Version : CMotion control of color and width between images



Gary Hill
10-06-2006, 08:02 PM
1) Script Title: CMotion Image Gallery

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm

3) Describe problem: I am going for a filmstrip look (should be very cool). As a result I need to change the color between the images (white to reddish color) and/or the width between the images. Any ideas on how I can do this?

jscheuer1
10-08-2006, 04:38 PM
With this script, things like that are controlled by the ordinary HTML and/or css methods of your choosing, in Step 2 from the demo. Here is an image fragment from Step 2:


<a href="#"><img src="dynamicbook1.gif" border=1></a> <a href="#"><img . . .

Notice the preceding and following spaces, they will influence the gap between images. The number used for the border is the width of the border. You can style the images, links and their containers from a stylesheet or with inline style.

From a stylesheet (use whatever valid styles you like):


<style type="text/css">
#trueContainer {
background-color:red;
}
#trueContainer img {
margin:0 2em;
border-width:0;
}
</style>