Hello. I have some text and the image in the [div]-tag. How to make the image floating right and the text floating left having the text neither under nor above the image(when the height of the text-block is more than the image's)? Ofcourse I can place the image and the text into [div]-tags each and set a particular width for each of those [div]'s, but It seems there is a better way )) Sorry for bad english
You could try: <img src="image/imagename.jpg" alt="imagename" style="float: left; padding: 0 10px 10px 0;" /> That will float the image to the left and leave 10 pixels padding to the right and underneath the image so the text isn't totally flush with it.
Thanx. Sorry ) I want to have the image floating right and the text on the left. I have edited my first post just now )
<img src="image/imagename.jpg" alt="imagename" style="float: right; padding: 0 0 10px 10px;" /> Just change it around a bit.