How To Center Google Adsense Leaderboard

I just created a tutorial on how to How to Center your Blog's Header. Now, I'll show you how to center  your Adsense leaderboard by editing your blog's HTML code.
  • First, you have to know your Adsense leaderboard's widgetID.
  • You can find your Adsense leaderboard's widgetID by pointing your cursor to the widget. See below photo. Mine is Adsense2.


  • Go to your Template Designer > Edit HTML > Expand Widget templates then click Ctrl+F "your widgetID" (for example Adsense2) then find < div class='widget-content' >  and then replace it with this code < div class='widget-content' style='text-align: center;' >. (Make sure to delete the space after < and before >)


    BEFORE

    AFTER
    I hope this could help. Enjoy! :)

    ~ Treasure Chest

1 comment:

  1. You got it going on. Good for you.

    Have a fabulous day. :)

    ReplyDelete

rebelmouse

 photo rebelmouseiconrockbleeder.png
Rockbleeder
Hi! I'm Rockbleeder.  I'm a poet, a blogger and a rocker. I love capturing sunsets, towers, clouds and flowers. Cute puppies, pastel stuff, fries, burgers, Coke Float, sundaes, pizza, big black shirts, ripped and studded jeans, black accessories give me bliss. My hobbies are: listening to sad rock music, watching TV series like The Walking Dead, Lost, Terra Nova, Hawaii Five-0, Burn Notice, Suits, Psych, Kyle XY and Chuck, doing movie marathon of great movies especially action ones, playing Plants vs Zombies, recycling and DIY-ing old clothes, used Soda plastic bottles, old cans and magazines and writing poems. Welcome to my life.
 photo myspace.png  photo rebelmouseiconrockbleeder.png