Results 1 to 7 of 7

Thread: Help: Up-down scroller type not centered in IE

  1. #1
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help: Up-down scroller type not centered in IE

    1) Script Title: Pausing up-down Scroller

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

    3) Describe problem: I am trying to center the type in Pausing up-down Scroller. I got it to work perfectly in Firefox & Netscape (Win/Mac) and Safari. But in IE it seems to center the type on the right margin so half the line is invisible.

    The script is not within any div. I've tried multiple variations, including putting it within <div align: center>. Nothing has worked. Here's the link to the page I'm working on:
    http://www.pathwaysoflight.org/index-new.html

    Any suggestions?

  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

    Get rid of:

    Code:
    text-align:center;
    from the #pscroller1 selector in the style section. Add this new selector to the style section and put it there:

    Code:
    .innerDiv {
    text-align:center;
    }
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    I'm having the same issue here: http://www.floridacompact.org/~flori...speakers2.html

    Any way you could look at the code and tell me what I'm doing wrong?
    Thanks,
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  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

    Get rid of the center tags:

    Code:
    		<tr><td height="288"><center>
    
    <script type="text/javascript">
    
    //new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)
    
    new pausescroller(pausecontent, "pscroller1", "someclass", 3000)
    
    
    </script>
    		</center>
    Use this style block instead of the one you have for the scroller (change is in red):

    Code:
    <style type="text/css">
    
    /*Example CSS for the two demo scrollers*/
    
    #pscroller1{
    width: 200px;
    height: 80px;
    border: 1px solid black;
    padding: 5px;
    background-color: white;
    font-family:verdana,arial,sans-serif;
    color:#311808;
    font-size:13px;
    font-weight:normal;
    margin:0 auto; 
    }
    
    .innerDiv { text-align:center; }
    
    .someclass{ //class to apply to your scroller(s) if desired
    }
    
    </style>
    - John
    ________________________

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

  5. #5
    Join Date
    Feb 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am having a similar problem, but the previous answers don't seem to apply to me. Here is the link: http://www.buildindiana.org/newsite/ If you could check it out and let me know how to fix this I would really appreciate it!!!

  6. #6
    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

    Quote Originally Posted by aglaranna View Post
    I am having a similar problem, but the previous answers don't seem to apply to me. Here is the link: http://www.buildindiana.org/newsite/ If you could check it out and let me know how to fix this I would really appreciate it!!!
    I went to the link quoted above. I saw the scroller. It didn't appear to have any issues with left/right/center alignment in IE 6 or 7 or in other popular browsers. What exactly is the trouble, in what browser?

    One thing, if you 'fixed' it already with one or more of the above ideas from the other solutions in this thread, you may simply need to refresh your browser to see the changes take effect, as you may still be viewing a cached copy of the page.
    - John
    ________________________

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

  7. #7
    Join Date
    Feb 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I actually found the answer elsewhere on the Forum and fixed the problem - thanks tho!

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
  •