Forum Moderators: martinibuster

Message Too Old, No Replies

Using adsense code with multiple DIVS

         

mackylos

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

10+ Year Member



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
</div>


This unit is in post content and I need to have some space between it and the words.

levo

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

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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

or

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

mackylos

10:39 pm on Mar 2, 2014 (gmt 0)

10+ Year Member



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?

webcentric

4:46 pm on Mar 3, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year 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.