How To Put Text Beside A Picture With HTML,CSS

Posted on March 19, 2008 by admin.
Categories: Internet - General.

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).

del.icio.us Slashdot Digg Facebook Technorati StumbleUpon Yahoo Ask

no comments yet.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>