Results 1 to 7 of 7

Thread: scrollers configuration

  1. #1
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default scrollers configuration

    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?

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Try enclosing the script in a centered element. Simplest way is:

    <center>

    script goes here

    </center>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Give this example 'messages' a try (from your code, addition - red):

    Code:
    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>"
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

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

    Thanks.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Last edited by Twey; 06-20-2005 at 04:15 PM. Reason: Stupid mistake.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That worked. Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •