Make image and paragraph sit next to each other

I have a box with an image and some txt, and I want the txt to be horizontal with respect to the image. I know this may be a fairly simple question, but I cannot find a good answer on interwebs. Thanks for any help.

<div id='container'>
 <img src='someimage.jpg'/>
 <p>some text</p>
</div>
+5
source share
1 answer

Take a look at the CSS float property, for example:

<div id='container'>
 <img src='someimage.jpg' style='float: left;'/>
 <p>some text (that will now wrap around the image</p>
</div>
+18
source

All Articles