Log in

View Full Version : Help with google adsence intergration (Centering in navbar) - Please help!


qerrer1881
04-24-2008, 03:48 AM
:confused:Take a look at the site www.abforum.org

With the navbar adsence intergration it appears correct at full screen (on a 19" wide monitor), but when you slim it down the adsence box in the navbar appears to merge to the right. There is some kind of table blocking it from the left but i do not know how to change it so it stays centered on smaller monitors and when you adjust the size.

(I think i need to change the width of the part that says australian business forum in the navbar)

I have played around with every aspect of the code and it isn't that. There is something else that needs changing.

PLEASE HELP!

the code i used (Nuturalizer adsense intergration tutorial):

Find:

<!-- / PAGENAV POPUP -->
</if>
Add below:

<table class="border" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
&nbsp;<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>&nbsp;
</td>
</tr>
</table>

Please help guys..
Thanks in advance Dave

--------------- Added 1209025766 at 1209025766 ---------------

Please Help, I am desperate..

Catmag
07-04-2008, 11:46 PM
There may be an easier way to do it, but here's how I did it.

Create a class in your css file

.adcenter {
text-align: center;
}

Then wrap your code in a DIV

<div class="adcenter">ad code....</div

Name the class whatever you want.

badboyz
07-05-2008, 04:00 AM
the best way to add ads in ur site is

go to navabar template go all the way down in the template type this

<br />
<center>
<<<<<your ad code here >>>>
</center>
<br />