Forum Moderators: open

Message Too Old, No Replies

Wrapping Text Around A Pic

What is the best way to do this?

         

newnewbie1

10:13 am on Jan 27, 2003 (gmt 0)

10+ Year Member



Hi!

I have a jpg that I would like to right justify, and some text (a couple of paragraphs) that I would like to have wrapping around the left.

I usually just use a 2 column table and have the text in the left column, and the jpg in the right column. But that doesn't wrap. How can I make the text wrap around, or can I?

THANKS!

Nick_W

10:25 am on Jan 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Best done with CSS. Use the Float [w3.org] property like this:
[pre]
<p><img src="img.jpg" class="rightfloat" alt="" />blah
blah blah blah</p>

In your Stylesheet:

.rightfloat {
float: right;
margin: 10px; /* puts white space around image */
}[/pre]

Nick

ElMongol

4:24 pm on Jan 27, 2003 (gmt 0)



Or you can use HTML:

<img src='img/foo.jpg' align='right' vspace='2' hspace='2'> And the text goes around it.

M.