Header Ads








How to Center AdSense Ads on Blog

If you've decided to try and make some money with your blog, chances are pretty good that you're using Adsense. Sometimes, especially under your header, Adsense ads are off to the left and just don't look good. If you'd like to center your AdSense ads within you blog here is a very simple way to do it and you don't even have to edit your HTML.




Go to Design > Template Designer > Advanced > Add CSS and add

Write this code :

.AdSense{text-align: center;}


 Other method:

Look for
 <data:adCode/>
 Put <center> ADDCODE HERE </center>

<center><b:if cond='data:blog.pageType == &quot;item&quot;'>
<b:if cond='data:post.includeAd'> <data:adEnd/> <data:adCode/> <data:adStart/> </b:if> </b:if> </center>

This may apply to any HTML code like LINK


Or used this code :

<div align="center">
    Google Adsense Code
    </div>






3 comments

Brady Partridge said...

The second option worked to perfection for me.

Thank you so much!

jaime lacson said...

Thank you Brady Partidge for visiting

Jaime Lacson said...

@Brady Partridge
Thank you

blogmytuts. Powered by Blogger.