MyBB Community Forums

Full Version: Adsense color help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi want to change the forum color below adsense ads :

[Image: 29813487.png]

in this image u see that black clor, i want to change that black color to white.....

Is it possible to do so....???
Move the adsense code below <div id="content">
If what you want to achieve is to widen the white each side of your ads, you can do this by including your ads in a DIV like this :
<div style="width:100%; background-color:#ffffff;">Your ads in here...</div>

If you want also to increase the height of the white, you can use this instead :
<div style="width:100%; padding:16px 0; background-color:#ffffff;">Your ads in here...</div>
The problem is the adsense code is outside the content div, so it's using the container background instead. The code just needs moving in the template.
LOL Big Grin

You need to change the color in Adsense Control Panel itself: https://www.google.com/adsense/adslots
ok i will do the settings....and let u know after
(2010-10-13, 03:11 PM)AJS Wrote: [ -> ]The problem is the adsense code is outside the content div, so it's using the container background instead. The code just needs moving in the template.

i have put it in content div as u said and its working but when i place center tag arround the adsense code then the whole forum goes center....

what to do....?
Centre tags are deprecated anyway, use this instead:
<div style="text-align: center;">
***adsense code***
</div>
thanks AJS .its working..........
can u tell me if i want to show adsense ads after posts then where to post the adsense code...?
You'd need a plugin for that really. Here's a couple of options -
http://mods.mybb.com/view/my-advertisements
http://mods.mybb.com/view/postad-lite
my advertisements code is set by me but the ads r not shown between posts......

What to do...?