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)

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)

10+ Year Member

<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)

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)

WebmasterWorld Senior Member Top Contributors Of The Month

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.

Featured Threads

Hot Threads This Week

Hot Threads This Month