PDA

View Full Version : Centering Conent in Firefox vs Internet Explorer


TheAllusionist
05-25-2008, 01:15 AM
There is probably a much better way to do this, what I am trying to do is place GAB banners centered under Navbar (actually under gallery block) on my forum home. I can do this but I can either get it centered in Firefox and not in IE or centered in IE and not Firefox. It would be nice to have it centered in both.

Centered in IE:

<!-- START OF SPONSOR BANNER TABLE -->
<table width="100%" align="center">
<tr>
<td>$GAB_ads[1]</td>
</tr>
</table>
<!-- END OF SPONSOR BANNER TABLE -->


Centered in Firefox:

<!-- START OF GAB BANNER TABLE -->
<center>
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<center>
$GAB_ads[1]
</center>
</tr>
</center>
<!-- END OF GAB BANNER TABLE -->

http://www.3dallusions.com/forums/index.php

I am wondering of any of you with more knowledge may have a centering syntax that works in both?

PyroNET
05-25-2008, 02:06 AM
<div style="text-align: center;">
$GAB_ads[1]
</div>

TheAllusionist
05-25-2008, 03:06 AM
Thank you very much, I have struggled with that for quite a while and made up my mind to fix a few things on the forums this weekend, that did the trick!