Craig McCoy

Programmer / Developer & Zombie Survivalist

How To Put Text Beside A Picture With HTML,CSS

Mar/2008 19

What you are probably looking for is the float property.

You can use float:left; or float:right; (there are other options as well, but these are most common).

you would do something like this <img src="image path" style="float:left; padding:5px; border:0px;" />

This will allow text or anything else to be next to the image.  The padding allows a little room between the text and image, and setting the border to 0px means don't show a border. (There is often a blue default border when using the img as a link).