homepage Welcome to WebmasterWorld Guest from 54.198.42.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

    
Using adsense code with multiple DIVS
mackylos




msg:4650561
 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
</div>


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

 

levo




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

<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




msg:4650570
 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?

webcentric




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved