PDA

View Full Version : Help on non centering image with IE7



gewixmassiv
11-20-2007, 10:31 AM
Hello,
I've a problem with this script: http://www.dynamicdrive.com/dynamicindex2/crosstick.htm
On IE7, the text I put is align on right and do not appear because 50% of it is hidden.
On Firefox, all works well.
Can so tell me how to center the text?

jscheuer1
11-20-2007, 02:50 PM
You have something(s) that are performing a layout and/or style center for the script. This makes the left edge of the inner division of content in it, which is absolutely positioned, to appear at the center mark. You can find and remove this/these centering styles/layouts, or sometimes all that is required is to do something like so:


<div style="text-align:left;">
<script type="text/javascript">

//new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)

new pausescroller(pausecontent, "pscroller1", "someclass", 3000)
</script>
</div>

Thus (hopefully) realigning to the default left the particular scroller.

If you need more help:

Please post a link to the page on your site that contains the problematic code so we can check it out.