View Full Version : scrollers configuration

06-16-2005, 11:51 PM
I have incorporated the latest Pausing up-down message scroller js.
The url is http://wsdev.colostate.edu/cwis116/admmock/dsp_fr.cfm.
I would like to align the scrolling text to the center of the middle column just like the image is aligned. The four configuration parameters do not address positioning. There are positioning statements in the section of "do not edit below this line" comment.

How do I alter the script or add css to center the scrolling text?


06-17-2005, 06:57 AM
Try enclosing the script in a centered element. Simplest way is:


script goes here


06-17-2005, 01:40 PM
Thanks. I tried <div align="center">..script..</div>
The text is centered, but the paragraph is not aligned to the left.
How do I align the text messages to the left in the center of the page?
<indent>...</indent>; <align="left">...</align> in the messages array ... did not work.

Any suggestion ? Thanks.

06-17-2005, 10:37 PM
Give this example 'messages' a try (from your code, addition - red):

messages[1]="<font color='#003300' style='text-align:left'><strong>LAND GRANT</strong><br /> Continuing the land-grant philosophy, Colorado State has coupled the intellectual experience of the classroom with the practical experience of the field and laboratory.<br /></font>"

06-20-2005, 02:48 PM
I tried <style='text-align:left'>, this did not left-justify the centered text.
Is there any other way?


06-20-2005, 03:55 PM
Use <div style="text-align:left; margin-left:auto; margin-right:auto;">.
If that doesn't work, try substituting em values (0.5em, 1em, 1.5em) for auto. Experiment, but make sure to keep margin-left and margin-right equal, if you want the text centred.

06-20-2005, 04:55 PM
That worked. Thanks.