2

i want to put an image in end of a paragraph and want it to be inside paragraph like this image: enter image description here

i give float to image but it goes through only one row.

user1447420
  • 1,382
  • 2
  • 12
  • 14
  • 1
    Good question. I think you'll have to place the image far inside the text so that there is exactly the right amount of text left to the right hand side of the image. I don't know of a solution for this that doesn't require placing the image in the exactly right position – Pekka Dec 09 '12 at 21:17
  • This is worth a read: http://stackoverflow.com/questions/311990/how-do-i-get-a-div-to-float-to-the-bottom-of-its-container. Old but good. – 3dgoo Dec 09 '12 at 21:45
  • http://bill2me.com/2007/04/18/using-css-to-wrap-text-around-images/ does using float + padding/margin work for you? – strider Dec 09 '12 at 23:28
  • thanks for answers.no, float + margin makes image be on the text not inside it. – user1447420 Dec 10 '12 at 07:25

1 Answers1

0

Yeah, unfortunately there is no easy way to do this with CSS. As Pekka said, unless you know exactly where to place the image in the markup, you will probably have a bad time.

zxqx
  • 5,115
  • 2
  • 20
  • 28