Forum Moderators: open

Message Too Old, No Replies

Script is Centered in IE but shifs to right in FF

         

Fortune Hunter

6:01 pm on Aug 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am using Firefox 3.0.1 to view a page I have set up. The following line of code shows up centered in IE, but is shifted to the right in Firefox. Any idea why?

<p align="center"><script language="javascript" type="text/javascript" src="http://www.example.com/include/p_drive_qt_banner3.js"></script></p>

tedster

6:52 pm on Aug 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are many possibilities, depending on your DTD and also potentially the content of the javascript. since the align attribute is deprecated in HTML 4 [webmasterworld.com], does the layout render better using this mark-up:

<p style="text-align:center">

Fortune Hunter

9:51 pm on Aug 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<p style="text-align:center">

No, I just tried this form and it doesn't work. I would agree that the JavaScript has something in it that would cause this, but why would it be ok in IE?