2 replies [Last post]
stump
Offline
newbie
Last seen: 18 years 12 weeks ago
Joined: 2004-11-16
Posts: 1
Points: 0

hello

consider a div with an image inside it floated to the left, followed by a bunch of text.. the text would flow around the image... now consider another image floated to the right at the end of all the text. This second image however will be postioned such that it sticks out the bottom of the text block. Does anyone know how you can make the image align to the baseline of the text, and have the text flow around it on the top and the left, much the same as how the left floated image has the text flowing around the right and the bottom ?

check out the attachment, in IE

thanks
Jon

rmfred
rmfred's picture
Offline
Elder
Rock Springs, WY
Last seen: 4 years 18 weeks ago
Rock Springs, WY
Timezone: GMT-6
Joined: 2004-01-31
Posts: 1073
Points: 31

how to float an image right with text wrapping around it

i8ramin
i8ramin's picture
Offline
Regular
Glen Cove, NY
Last seen: 18 years 11 weeks ago
Glen Cove, NY
Joined: 2004-11-24
Posts: 49
Points: 0

how to float an image right with text wrapping around it

If you continue to add text after that right aligned image, it will flow around it just like you want. It all depends at what point you float the image. If the image is the last thing in the paragraph and it is floated right, then it will be at the end of the text. If you want the text to flow around it, then you have to position the image before the end of the paragraph