Custom Search

Monday, October 12, 2009

Center Align Inline Google Ads for Blogger

I added Google Adsense to my blog yesterday. I noticed immediately that inline ads (the ads between posts) were left aligned, and overlapped with my blog frame. It's ugly.
The following are the steps I took to center align inline ads:
  1. Log into Blogger account.
  2. From Dashboard, click Layout
  3. Click Edit HTML, then check the Expand Widget Templates box.
  4. Click in text area, search (press Ctrl+F) for inline-ad
  5. The string found should be <div class='inline-ad'>; change it into <div align='center' class='inline-ad'>
  6. Click the SAVE TEMPLATE button.
  7. Click View Blog to see inline ads center aligned.
Don't send me mail! Leave a comment instead!

No comments:

Post a Comment