Forum Moderators: open

Message Too Old, No Replies

Facebook Script not Centering in IE

         

Fortune Hunter

6:08 pm on Nov 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have the following script set up on a page that is provided by Facebook. In a very annoying situation it is centered perfectly in FireFox, but is aligned left in IE. I am not sure what to add to this thing to get it to center in IE as well.

<p align="center"><script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script><script type="text/javascript">FB.init("4d45aee54b9ab05938833a65fd6f6cde");</script><fb:fan profile_id="118044802876" stream="1" connections="10" width="300"></fb:fan><div style="font-size:8px; padding-left:10px">
<div align="center"><a href="http://www.facebook.com/pages/Example/118044845622">Example</a></div>

Demaestro

6:20 pm on Nov 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try wrapping it in a div like this.

<div style="margin:0 auto; text-align:center;">

<p align="center"><script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script><script type="text/javascript">FB.init("4d45aee54b9ab05938833a65fd6f6cde");</script><fb:fan profile_id="118044802876" stream="1" connections="10" width="300"></fb:fan><div style="font-size:8px; padding-left:10px">
<div align="center"><a href="http://www.facebook.com/pages/Example/118044845622">Example</a></div>

</div>

Fortune Hunter

1:28 am on Nov 19, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you!

That worked perfectly.