how to center adsense unit in blogger
- Once you have created your Google Adsense unit go to Design > Edit HTML
- Check the Expand Widgets Template box
- Find the code you replaced in Step 4
<b:section class='header' id='header' maxwidgets='3' showaddelement='yes>
- Directly below you will see lines of code that resemble the following:
<b:widget id='AdSense2' locked='false' title='' type='AdSense'>
<b:includable id='main'>
<div class='widget-content'>
<data:adCode/>
<b:include name='quickedit'/>
</div>
- Add the following code shown in red
<b:widget id='AdSense2' locked='false' title='' type='AdSense'>
<b:includable id='main'>
<div class='widget-content'>
<div align='center'><data:adCode/></div>
<b:include name='quickedit'/>
</div>
- Save template and view your Adsense widget which will now be centered