Tuesday, 13 September 2011

How to center your adsense widget in the header of your blogger blog




In order to center your blogger adsense widget  in the header of your blog go to Design > Html Edit and search for the line:

]]></b:skin>


Just before this line place the following code:


#AdSense2
{
width: 728px;
margin: auto;
}



You may need to change the number/value of the width depending on the width of the banner that you have chosen. If you have more than one adsense widget on your blog you may need to alter the number after the #AdSense where appropriate- using 1,2,3 to achieve your desired result.


Enjoy

Blog Archive