View Full Version : CMotion gallery script help? center align?
frantik
03-28-2007, 12:08 AM
1) Script Title: CMotion gallery
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm
3) Describe problem: Hey guys, is there anybody that can help out a newbie with how to align CMotion gallery to the center of the page? any help is very much appreciated, thanks..........
-frantik
jscheuer1
03-28-2007, 02:53 AM
From the default gallerystyle.css file, highlight added:
/* Gallery Styles */
#motioncontainer {
/*margin:0 auto; Uncomment this line if you wish to center the gallery on page */
width: 50%; /* Set to gallery width, in px or percentage */
height: 130px; /* Set to gallery height */
}
#motioncontainer a img {
border: 1px solid #cccccc; /* Set image border color */
}
#motioncontainer a:hover img {
border: 1px sol . . .
That would mean doing it like so:
#motioncontainer {
margin:0 auto; /*Uncomment this line if you wish to center the gallery on page */
width: 50%; /* Set to gallery width, in px or percentage */
height: 130px; /* Set to gallery height */
}
To prevent problems in IE, avoid using <center> or align="center" or text-align:center; in any container for the markup of the HTML code in Step 2 from the demo page.
frantik
03-28-2007, 02:58 PM
Thank you john! you're help is very much appreciated! have a good one!
-Gian
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.