PDA

View Full Version : how to "center"


geiger1709
06-17-2008, 01:11 PM
Hello,
hope someone can help me...

I did add my adsense code into the header, but cant "center" the add. can anybody help and show me how to center this...

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table><script type="text/javascript"><!--
google_ad_client = "xxxx";
/* xxxx */
google_ad_slot = "xxx";
google_ad_width = xx;
google_ad_height = xx;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

thanks

G

veenuisthebest
06-17-2008, 03:06 PM
add your code to the Ad Location Templates instead, within <center> tag

geiger1709
06-17-2008, 05:00 PM
Hi

Thanks, but can you be more specific, thanks

G

veenuisthebest
06-17-2008, 05:06 PM
say I want to add a Advert to my footer.

I will go to Style Manager->Ad Location Templates->ad_footer_start

<center>
<script type="text/javascript"><!--
google_ad_client = "xxxx";
/* xxxx */
google_ad_slot = "xxx";
google_ad_width = xx;
google_ad_height = xx;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>


I suggest you to use the default Ad Location templates for putting Ads which is a feature in vB 3.7

geiger1709
06-17-2008, 08:45 PM
cool,, thanks

g