Forum Moderators: open
TEXT TEXT TEXT TEXT ¦ AD AD ¦
TEXT TEXT TEXT TEXT ¦ AD AD ¦
TEXT TEXT TEXT TEXT ¦ AD AD ¦
TEXT TEXT TEXT TEXT TEXT TXT¦
TEXT TEXT TEXT TEXT TEXT TXT¦
AD AD ¦TT TEXT TEXT TEXT TXT¦
AD AD ¦TT TEXT TEXT TEXT TXT¦
AD AD ¦TT TEXT TEXT TEXT TXT¦
So far, I have problems making it happen because dreamweaver does not allow me to wrap text around overlapped layers such as the "ad" blocks. If I were to put divs or tables within the "text" divs, it will disappear as soon as I make it into an editable region won't it? I wonder if anyone can provide an insight as to how to do it?
Insert this where the * is:
<div style=”display:block;float:right;margin: 5px 5px 5px 5px;”>
your adsense code here
</div>
Your output will look just like you described above:
TEXT TEXT TEXT TEXT ¦ AD AD ¦
TEXT TEXT TEXT TEXT ¦ AD AD ¦
TEXT TEXT TEXT TEXT ¦ AD AD ¦
TEXT TEXT TEXT TEXT TEXT TXT¦
TEXT TEXT TEXT TEXT TEXT TXT¦
To add your ad at the bottom (left justified) insert same code just play around with the float part. Good luck.
I often use that technique for my AdSense layout, so what I do is, if for example Im using a 300x250 rectangle I use the following code:
<div style="width:310px;height:260px;float:left;">
ADSENSE CODE
</div>
This way my article text wraps around my ads nicely.
Cheers!
You should run this by Google before putting it online, because there was a time when they did not allow this. I'm not sure if they would say it's OK now or not.
You should also check the code in pretty much every browser you can think of. Explorer, Firefox, Opera, Netscape, Safari, etc. Current releases and also version 4 browsers. Widescreen down to 800x600 windows or smaller. The reason is that if the code screws up for some users and the AdSense code ends up overlapping with the content of the page, that's a violation of the TOS.
That is not what I meant though. I meant fixed in a position meaning that it's part of a template so it forever remains at a particular place and not dependent on the paragraphing on the words.
WHen the user scrolls down, it does not follow the viewport but instead remains there.
In my example, the ad block right at the top does not follow the user as he scrolls but remains at left:500px;top:0px. and the other ad block remains at left:0px;top:800px. when the user scrolls past the 800px, he is unable to see both ads anymore.
I've tested a bunch of approaches to implementing nonscrolling content (not related to AdSense), and they all seem to have drawbacks. But if you can find a solid solution that works for everyone, or at least degrades gracefully, then ask Google before putting it online. Maybe they'll say yes.
I'll just reiterate that you want to make sure the solution works for pretty much everyone, not just on your own computer for your own personal combination of browser/OS/version/screensize/preferences.
Anyway, as I have already said, Google have said no to this same kind of gimmickry in the past, and theirs is the only opinion that matters.
But by standard, I mean an article where the adsense is on the left or right, embedded in the article. Just like Adsense shows on its example page:
[google.com...]
I might be misunderstanding what the original poster is trying to do though. But if it's the above, then it's just a matter of css formatting or table placement.
I'm interpreting this to mean that he doesn't simply want the text to flow around the AdSense blocks (which I agree is common and trivial), but wants the AdSense blocks to remain in a fixed position on the screen, so that as the user scrolls down, the text would flow around the ad blocks dynamically. THAT is neither common nor trivial.
I could be wrong, though, especially because I have no knowledge of DreamWeaver and how its templates work.
jomaxx did raise a good point though, re aspects of the site text overlapping the adsense ads.
If the site the OP is implementing adsense on is the one referred to in his profile, he should do as jomaxx suggests and check the site appearance in all browsers, as in mine, part of the adsense block is obscured by the sign-up box. I'm using Firefox 1.5 on a Mac.
Thank jomaxx though for your input! I still have no idea what you are talking about but my comprehension of English is not very good anyway.
But I want to say a big thank you to all you guys. From where I come from, the people aren't so friendly! Thank you guys once again!