ptc monitor best csindonesia skin

Rabu, 05 November 2008

Show Google Adsense inside blogger post

By using the CSS method you can make Google Adsense ads appear on either the left side of your post content or right side of your post content.

Here is how to do with CSS.

The CSS code

Open your blog's template in the template editor and add the following code. Simply paste the code into the stylesheet, before the
]]> tag in your template.

.adv
{
float:left;
padding-right:10px;
padding-right:10px;
}

The above code aligns your ads to the left. If you want to align your ads to the right simple use float:right in the third line.

Changes in the Adsense code

Now grab the Adsense code of your favorite format and before pasting it in your template just make a small change in the code. Wrap the code in the tags

and

[=<=>

Wrap the code in the tags [div class='adv']and [/div]


[div class='adv']

Your adsense code

[/div]



That's it, your adsense ads will now appear besides your posts.

0 komentar:

Posting Komentar

 
© Copyright by cumigraph  |  Template by cumigott