How to Align Adsense Ads In Blogger - Center, Left, Right

Here is the tutorial about how you can align Google Adsense ads as per your requirement? You can align the ads to Right, Left or Center, so to know how to align Google ads in the blogspot or blogger, please see the below details. If you are implement adsense to show below the post title and need to align the ads to center, left or right then this topic will help you to do that.

Just go the html editor on the blogger and where you implement the Adsense code, search the Adsense code and before the code add the below alignment code and ends with </div>, that's all now you can see the Adsense alignment in blogger.

Google Adsense Left, Right and Center Alignment Code For Blogger

Note: Before you are going to change anything in the template, please take the backup of the template.
 
How to adsense ads align Center

        <div style="text-align: center; margin: 10px 0 10px 0;">
        YOUR ADSENSE CODE HERE
        </div>

How to adsense ads align Right

 <div style="float: right; margin: 10px 0px 10px 10px;">
    YOUR ADSENSE CODE HERE
    </div>

How to adsense ads align Left

 <div style="float: left; margin: 10px 10px 10px 0;">
    YOUR ADSENSE CODE HERE
    </div>

Example:

<div class='post-header-line-1'/>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
     <div style="text-align: center; margin: 10px 0 10px 0;">
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Free Computer Tricks Below Post Title 336x280 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:336px;height:280px&quot;
     data-ad-client=&quot;ca-pub-xxxxxxxxxxxxx&quot;
     data-ad-slot=&quot;xxxxxxxxxxxxx&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
</div>
</b:if>

1 comment:

  1. Thanks Dear!
    These tips are really much helpful for me... Great work ! I will apply them on my health and fitness related blog https://gethealthyfitnesstips.blogspot.in

    ReplyDelete