如何在div上方和下方进行文本换行?

cop*_*360 11 html css layout css-float

当元素的顶部对齐时,我没有问题让文本环绕div,但我无法弄清楚如何在div的上方和下方包含文本.

例如,我希望文本为40px的#container的全宽,然后将其环绕到右边,然后再次全宽.

请参阅http://jsfiddle.net/cope360/wZw7T/1/.我在#inset中添加上边距的地方是我要包装文本的地方.这可能吗?

CSS:

#inset {
    width: 100px;
    height: 100px;
    background: gray;
    float: left;
    margin-top: 40px;
}
Run Code Online (Sandbox Code Playgroud)

HTML:

<div id="container">
        <div id="inset">Inset</div>
        This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around.
</div>
Run Code Online (Sandbox Code Playgroud)

cop*_*360 9

这是一个解决方案,根据moontear的答案和http://www.csstextwrap.com/提供我想要的渲染.

CSS:

div {
    float: left;
    clear: left;
}

#inset {
    width: 100px;
    height: 100px;
    background: gray;
    margin: 10px 10px 10px 0px;
}

#spacer {
    width: 0px;
    height: 40px;
}
Run Code Online (Sandbox Code Playgroud)

HTML:

<div id="container">
    <div id="spacer"></div>

    <div id="inset">Inset</div>
    This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around. This text should wrap all around. This text  should wrap all around.
</div>
Run Code Online (Sandbox Code Playgroud)

请访问http://jsfiddle.net/cope360/KbFGv/1/