0

Possible Duplicate:
CSS: wrap text around a bottom-right div?

Is it possible to have 2 layers, one with text, one an image, and the text wraps around the image?

enter image description here

Community
  • 1
  • 1
TeaDrinkingGeek
  • 1,995
  • 5
  • 34
  • 52

2 Answers2

3

give to the div2 a float: right

<div id="div1">
  <div id="div2">
  </div>
</div>

#div2{float:right;}
Andrew
  • 46
  • 2
1

Need not to add extra div to place image.

HTML

<div><img src="" />
Content here
</div>

CSS

div{width:450px; text-align:justify}
div img{float:right; margin-left:10px}​

DEMO

Sowmya
  • 26,684
  • 21
  • 96
  • 136