PDA

View Full Version : Help: Up-down scroller type not centered in IE



RStoelting
05-19-2007, 03:06 AM
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?

jscheuer1
05-19-2007, 10:19 PM
Get rid of:


text-align:center;

from the #pscroller1 selector in the style section. Add this new selector to the style section and put it there:


.innerDiv {
text-align:center;
}

dmwhipp
05-23-2007, 03:08 PM
I'm having the same issue here: http://www.floridacompact.org/~floridac/irsl/speakers2.html

Any way you could look at the code and tell me what I'm doing wrong?
Thanks,
Deborah

jscheuer1
05-23-2007, 03:32 PM
Get rid of the center tags:


<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):


<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>

aglaranna
02-12-2008, 09:16 PM
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!!!

jscheuer1
02-12-2008, 10:02 PM
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.

aglaranna
02-13-2008, 12:41 AM
I actually found the answer elsewhere on the Forum and fixed the problem - thanks tho!