Tuesday, 20 December 2011

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




In order to center your adsense widget in the side bar of your blogger blog go to Design > Html Edit and then search for the following:

]]></b:skin>


Just above this line place the following:


#AdSense1 { width: 120px; margin: auto; }


You will need to change the number/value of the width depending on the width of the banner that you have chosen. If you add any more adsense widgets to your side bar and want to get the same effect you will need to do the same thing. Alter the number after the #AdSense where appropriate- using 1,2,3 to achieve your desired result.


Enjoy