PDA

View Full Version : How to have paragraph text wrap around an image?


famousb
12-11-2007, 10:03 AM
Greetings All,

i have a CSS question...
i have a page i'm designing w/ a picture in the top-right corner of the body of the page which goes about 1/3 down the page (imagine 33% x 33% in the top right corner for ease of visualization), and i want the rest of the body to be text that wraps around the picture - on the left side of the picture from the top of the page to the bottom of the picture, and then after the picture i want the text to go all the way across the page.

How would i accomplish this using CSS?

TIA

ringsoft
12-11-2007, 10:17 AM
You can simply give the image a class and float it...

.img_right {float: right; margin: 0px 0px 0px 10px;}

When the text reaches the bottom of the image, it will jump back to fill the width of the container.

famousb
12-11-2007, 10:40 AM
thank you!