css - Positioning Image on top right of text even if it's after it -


i'm here dumb question i've not figured out how put image, in last part of div, top right. here example:

<div class="home_blog" style="width: 45%; float: left ;height: 400px;">       <p>         <span>texttexttexttext</span>         <span>texttexttexttext</span>       </p>       <p>         <span>           <img style="height: 100px;" src="image.jpg" />         </span>       </p>       </div> 

what want set image on top/left of text , let text sorround image, not put image on it. seems difficoult image after text.

note: cannot move article parts, can act on css , not add specific class on paragraph or span sorrounding image.

how can move image near text on top/left of div text on side of image?

that's link page i'm creating: http://www.mylenstyle.com/pages/list-blog-articles

thanks lot!

instead of putting img in span, try styling image itself displayed inline.

<img style="height: 100px; display: inline;" src="image.jpg" /> 

Comments