PDA

View Full Version : IE not centralizing table!


medicalforums
08-29-2009, 05:02 AM
Hi
I added this code to the very bottom of postbit template to show Google Adsense

<if condition="$post['islastshown']">
<div style="padding: $stylevar[cellpadding]px 0px 0px 0px">
<table align="center">
<tr>
<td align="center">
Google Adsense Code
</td>
</tr>
</table>
</div>
</if>

In all browsers, including Firefox, Chrome, and Safari that table and it's banner gets appropriately centralized

but in my IE7 it's left justified!

See this screenshot

103810

Any idea why?

RLShare
08-29-2009, 10:37 AM
Try removing the table, put the adsense code directly in the div, set the width of the div to fit the banner size(468px) and set the margin of the div as 'margin:0 auto;' to center the div.

medicalforums
08-29-2009, 03:11 PM
Thanks for the advice, now it's working :)

<if condition="$post['islastshown']">
<div align="center">

Google Adsense Code

</div>
</if>