Enter your email address:

Tuesday, March 1, 2011

ALIGN GADGETS TO CENTER IN YOUR BLOG

I got many email, asking about how to center align a Gadget in a blog. By default, most templates obey the rule of aligning a Gadget either justified or left aligned. This becomes a challenge when a blogger try to display an advertisement in the header portion. Most of the advertisements, such as Leader Board displays in a maximum of 800 px width. So if the blog width is 1000px or more, then it is ideal to keep the advertisement gadget aligned as Center.       (Most applicable to Google Adsense)

CENTER A GADGET

How to Align A Gadget to Center

Simple way

Just put two tags in the HTML of the Gadget.

<center>YOUR GADGET HTML SCRIPT</center>

Replace “YOUR GADGET HTML SCRIPT” with the HTML script of your Gadget. Now place the code where ever you want, it will appear as aligned center.

Any doubts? Please feel free to ask…..

del.icio.us Tags:

More to Read:

No comments:

Blog Widget by LinkWithin