Make text in a <div> wrap around a child element

In Word you can place an image on a page and have the text flow nicely around it. I was wondering how far one can get towards this using CSS, noting that is has to work in IE6.

I already have something sort of close using float, but the floated child-element still 'blocks' text above it. So it partially wraps. Is it possible to put a child div at some arbitrary position in the parent, and have text flow around it freely?

The actual use-case here is to put illustrations inside the main content , where each illustration is implemented inside a child .

I repeat, it has to work on IE6. And I don't want to get too involved in browser-specific hacks... floating the child at least works on IE6 with no tweaking.

Currently I have like this:

    <div class="illustration">
        <img src="image1.png" />
        <p>Illustration caption</p>
    <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
    sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, 
    sed diam voluptua. Atvero eos et accusam et justo duo dolores et ea rebum. 
    Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

    border-top: 1px solid #505050;
    border-left: 1px solid #505050;
    border-right: 1px solid #505050;
    border-bottom: 1px solid #505050;
    background: #96C3FF;
div.illustration p


As far as I know, the only way is to actualy put the floated div between the lines of text.

<div style="width: 600px;">
this text will go above the image.
<img style="float:left;" />
this text will go next to and below the image.

Need Your Help

What's the best way of using coalesce keyword in Subsonic 2.2 query?

subsonic subsonic2.2

I want to create the following query using Subsonic 2.2:

jquery checking or matching text within a url string?

php jquery regex preg-match match

Is there a way to get a certain string of text inside a url string?