pavsid
06-03-2008, 08:32 PM
Hi all,
I have a div container in which I want text on the left and an image on the right. I have set the width of the image to 65% in the html and this resizes beautifully with the browser.
However of course, the layout looks ugly because the image is pushed up against the text. What i really want is the image to stay to the right of the container and the text on the left to wrap around it.
So, i created another div inside the main div container and put the image inside it. I then floated this internal div to the right as you would. Except that now the image will not resize according to its container!
Is there another way around this?
I have a div container in which I want text on the left and an image on the right. I have set the width of the image to 65% in the html and this resizes beautifully with the browser.
However of course, the layout looks ugly because the image is pushed up against the text. What i really want is the image to stay to the right of the container and the text on the left to wrap around it.
So, i created another div inside the main div container and put the image inside it. I then floated this internal div to the right as you would. Except that now the image will not resize according to its container!
Is there another way around this?