View Full Version : Centering Scrollable Content II

12-17-2005, 12:15 AM
I've used the script for the scrollable content II, and have the content the way I want it. But, I can't figure out how to center the whole thing on my webpage. Would some one please help... Thanks in advance.

12-17-2005, 06:24 AM
The easiest way is to put:


script goes here


tags around it. If you want to preserve the left alignment of text within the scroller, you will have to add 'text-align:left;' to the style of its 'container' inside the script itself (near the top of the script):

document.write('<div id="container" style="text-align:left;position:relative;width:175px;height:160px;border:1px solid black;overflow:hidden;">')