Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Using adsense code with multiple DIVS

9:09 pm on Mar 2, 2014 (gmt 0)

New User

joined:Feb 21, 2014
posts: 14
votes: 0

I am currently using the click-fraud monitoring plugin for my website. It requires me to wrap adsense code like this:

<div class='cfmonitor'>ADSENSE CODE HERE</div>

My question is how can i wrap the adsense code for an ad unit that is already wrapped with the following: ?

<div style="float:left;padding: 10px;"> ADSENSE CODE HERE

This unit is in post content and I need to have some space between it and the words.
9:23 pm on Mar 2, 2014 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 12, 2004
votes: 1

<div style="float:left;padding: 10px;"><div class='cfmonitor'>ADSENSE CODE HERE</div> </div>


<div style="float:left;padding: 10px;" class='cfmonitor'>ADSENSE CODE HERE</div>
10:39 pm on Mar 2, 2014 (gmt 0)

New User

joined:Feb 21, 2014
posts: 14
votes: 0

Thank you levo. I used the 2nd option you provided. Are you sure it wont interfere with how the plugin works by using the tags like that?
4:46 pm on Mar 3, 2014 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Aug 1, 2013
votes: 8

Both sould work but the first keeps the style separate from the prescribed div code if you're worried about altering the code you were provided.