How to wrap text around an image using HTML/CSS

user1780343 picture user1780343 · Oct 4, 2013 · Viewed 267.1k times · Source

I want to design a block of text like the following picture:

enter image description here

Question whether this is possible?

Answer

BeNdErR picture BeNdErR · Oct 4, 2013

you have to float your image container as follows:

HTML

<div id="container">
    <div id="floated">...some other random text</div>
    ...
    some random text
    ...
</div>

CSS

#container{
    width: 400px;
    background: yellow;
}
#floated{
    float: left;
    width: 150px;
    background: red;
}

FIDDLE

http://jsfiddle.net/kYDgL/