Possible duplicate:
Why list item markers overlap floating items
I had this problem with ul next to the floating image
Here is the code I used
<img src="abc.jpg" width="300" height="375" style="float:left;" /> Hello world isn't this amazing <ul> <li>One</li> <li>Two</li> <li>Three</li> <li>Four</li> <li>Five</li> <li>Six</li> </ul> <p>Extra sample text here</p>
Result
If he changed to
<ul style="overflow:auto;">
The list goes past the image, not what I want
Also the attempt below gives the wrong result
<ul style="list-style-position: inside;">
Photoshop of what I want
source share