Subscribe via: ( Email / RSS )

Sunday, May 06, 2007


For those of you who read my blog on a regular basis, you know how much I love to share great tips when I find them. Today's post is based on a post from Erik Vossman of http://www.erikvossman.com/.

Erik - I know you're worlds away in Hawaii... but I can't thank you enough!




by Erik Vossman

If you’re like me and rather new to the html coding world you proabably are looking for a dumbed down way to do things. Well I have begun posting lots of tips on using wordpress and netfirms and decided that I need to post about coding in general as well. One of the most useful things I have learned how to do is wrap text around Google Adsense ads when they are embedded in text. If you are using wordpress and would like to find out how to wrap text just follow this link. If you are looking to just wrap text around ads using a normal html editor like notepad, Dreamweaver, or FrontPage then keep reading.

Also the great thing about this trick is that it works for Chitika ads as well. If you aren’t using Chitika ads you should, they are very similar to google adsense and another way to generate revenue for your site. They pay monthly once your account goes over $50.

The process described is a really easy 2 step process with one extra tag you need to add. This is the quickest and easiest way I found to wrap text around google adsense using the least amount of html coding. Much easier than inserting a table or anything like that.

How to wrap text around Google Adsense ads (also works for Chitika):

1. First off you need to get into your text editor you use for html coding. You can use the coding section of Dreamweaver or FrontPage, or use Notepad. Then you have to find where in your content you want the text to wrap around the ads. Anywhere will work for your first try, you can then copy and place the text where you please.

2. Once you found the spot you like you need to add the following div tag around your adsense or chitika code. Note: replace the "[" with "<" and the "]" with ">".

[div style=”display:block;float:right;margin: 5px 5px 5px 5px;”] all the google adsense code (or chitika)[/div]

That’s it!

Explanation of the div tag
The float:right attribute can be changed to float:left or float:center as well and it will position the ads in those positions while allowing the text to wrap around the ads that directly preceeds and follows it. I also add the margin code to add a margin of white space around the text wrap on the top, bottom, left, and right. You can add or remove space as you wish. The display:block element basically just describes whether you want to break the line where you are inserting the ad or let the browser find where to break the line and wrap the preceeding text. If you want the browser to do it just choose block:inline. I have better luck with block:float but it can sometimes make the text look choppy. Play around with these to see what you like.

There you have it, you can now insert this same coding with different add scripts all over your content and have the text wrap around the ads. Remember that this works with both Google Adsense and with Chitika based ads. Good Luck!

If you are using wordpress check here to get text to wrap around adsense inside posts. I also have a similar article about getting it to wrap around chitika ads which just requires a tweek.



7 comments :

Andrea M. Pace, Publisher & CEO said...

Thanks for this great tip. Wrapping adsense around my text has made a difference in my click through rate on my blog, Your Feet Make You Unique.

Andrea

AM Nichols said...

Just wanted to say thanks for the help. You code was soooo valuable in helping me tweek things on my blog.

Low Power Radio Guy said...

Thank you a whole bunch for this tip. It shows how, with just a tiny bit of HTML skill, an ad supported content page can be transformed from "ho-hum" to click city - the content ends up looking sharp, professionally composed and visually interesting!

Jocuri cu masini said...

I tried doing what you said to wrap text around google ads. I am using dreamweaver. It works in mozilla firefox, but in dreamweaver it says the code has been marked invalid because one of the attributes is duplicated?? Also, when I preview that page in IE, it does not show anything.

andrelle said...

thanks alot i definetely tried this it works like a beauty. thanks alot

Anonymous said...

thank you ,nice tip

AdSense Marketing eBooks said...

Wrapping text around Google Adsense ad units can increase your click-through rate by up-to 25%, which means 25% more earnings.Not only this, but when planned properly and utilized well, the Adsense ad units may make a blog or a website look better, unfortunately this was not the case with my blog.

Post a Comment

Please note that we reject all posts that clearly are leaving a comment simply to acquire a back link. Only comment if you have something of value to share with other readers.

Thanks!




Copyright 2018. The Marketing Blog.