I’m having trouble to float an image to the left, and let text elements after that flow around it on the right, without the text elements starting at the left edge of the parent element (thus under the image)?
The text does render to the right side of the image but the elements are relative to the parent elements’ left edge. This makes it impossible to use margin and padding properties to position the text elements relative to the image.
“display: inline-block;” -rule helps on IE but doesn’t do a thing in NS7. Another thing I tried was to wrap the text elements to a container div, but this prevents the text from flowing under the image.
Example:
<img src=”foo.jpg” style=”float: left;” />
<p style=”padding-left: 10px;”> paragraph </p>
Here the padding doesn’t do anything, because the p element
starts on the left side of the image.
Anyone had similar problems? Any thoughts on this?