| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Using adsense code with multiple DIVS|
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.
<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>
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?
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.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved