Say you have an image with float:left; and text that wraps around the image.
The code is pretty simple:
<img src="image.jpg" style="float:left"> <p style="outline: 1px dotted blue">Lorem ipsum...</p>
Is there a way to display the outline that wraps around the text, but not around the image. A normal text outline gives you the following:

But I want this:

using display:inline; on <p> , displays the outline on each line, and not "block by block" at the borders of the visible text.
CSS3 is legal; any CSS / JS hardcore is allowed ...
Lukas source share