Forum Moderators: martinibuster

Message Too Old, No Replies

how to make text wrap around adsense ad

         

Hugene

6:05 am on Nov 8, 2004 (gmt 0)

10+ Year Member



simple question. how do I make the text wrap around the AdSense ad?

thanks

Jenstar

6:50 am on Nov 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using the <div> tag is one way.

Mauricio

7:51 am on Nov 8, 2004 (gmt 0)



Put it in a table with alignement. I.e.:
<TABLE WIDTH=250 HEIGHT=250 BORDER=0 ALIGN=right><TR><TD>
<!--adsense code-->
</TD></TR></TABLE>

annej

8:07 am on Nov 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use

<div style="float: left; margin: 3px 3px 3px 3px;">

adsense code goes here

</div>

Of course you can change left to right. Also you can adjust the margin to your preference.

peggster

11:42 am on Nov 8, 2004 (gmt 0)

10+ Year Member



Thanks for the question (and answers). I've been trying to figure out that exact same thing. :-)

Jon_King

12:31 pm on Nov 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As Jen said you won't do it with div's and I don't think it possible at all. Hugene, have you ever seen what you are trying to do on another site?

Hugene

4:08 pm on Nov 8, 2004 (gmt 0)

10+ Year Member



Your right John, I wont do it all, and nobody has ever done it before (I can finally be an inovator on the web).

I didn't want to use tables as there is already enough table in there ;) it is going to be within the text content so I don't want to add table in there too.

I am more used to using <span> and the wrapping can be done that way too, by using style sheets. But <div>s, I am not too familiar with, and that's what I was trying to get to. This <div> tag seems to have some prety magical positioning properties. I wonder if it is being phased out though.

annej

2:40 am on Nov 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



CSS as a whole is magical. I don't know why I waited so long to learn it. My biggest site is all CSS but those little inline divs are nice to use on old pages that I don't want to redo in tables or CSS.

[webmasterworld.com...]
the CSS forum

Do you mean phased out by the newer browsers? I hadn't heard about that. I hope not.