Forum Moderators: mack

Message Too Old, No Replies

Making text wrap around adsense block

         

rnewton01

9:12 am on Apr 10, 2004 (gmt 0)

10+ Year Member



I'm as new as they come to website design.

I've figured out a little on my own using tables and I'd like to be able to place adsense ads along one side of a cell that also has text in it.

I'd like the text above the block of ads to continue to the edge of the cell and the text inline with the block of ads come up to a certain distance from the ads and then wrap to the next line. Then the text should continue on and when it gets below the block of ads, keep going until it reaches the far right side of the cell again, etc., etc.

Can anyone point me in the right direction to learn to do this?

Strange

9:16 pm on Apr 12, 2004 (gmt 0)

10+ Year Member



I think one way to do what you are asking would be to wrap the adsense code into a DIV area inside the table cell and float it.

rnewton01

1:57 am on Apr 13, 2004 (gmt 0)

10+ Year Member



Thanks for the reply.

Unfortunately, I really am like I said as new as they come. I have no idea what a div area is or what float means.

The only thing I have learned so far is how to put a basic table on a site.

Robert

Strange

1:16 pm on Apr 13, 2004 (gmt 0)

10+ Year Member



Sorry rnewton01... I saw new.. I didn't realize just how new. ;-) Let me elaborate on my previous reply. A div is a block level element a lot like a <p> tag. Think of it as a box that you can put things into. Float is a way of positioning the div area on a page.

If you place div tags around your adsense code and use a float in your inline style, you should be able to get your text to flow around the area.

Ex.
<table>
<tr>
<td><div style="float:right;">Adsense code</div> Text</td>
</tr>
</table>

There are several other styles you can apply to the div to make it more visually appealing. I would suggest checking out the CSS forums here. There is a ton of great information in there.

I hope this helps a bit more.

rnewton01

3:48 am on Apr 14, 2004 (gmt 0)

10+ Year Member



Hi,

Thanks very much for your help. I'll check out the CSS forum and see what I an learn.

In the meantime, I've got a workround using tables that does somewhat like I am trying achieve.

Robert