Click to See Complete Forum and Search --> : Text\Image Alignment
Wrathbone
03-19-2003, 06:46 AM
I'm a complete HTML newbie, and I need some help. All I want is a picture on the left with several lines of text aligned to the right of it. I cannot for the life of me get more than one line of text to align with the image. I read about using a <BR CLEAR="all"> command, but that doesn't seem to work.
Any help would be greatly appreciated.
Beauchamp
03-21-2003, 12:59 PM
Use the 'align' attribute in the img tag plus a little hspace and vspace to keep the text away from the edges of the image:
<img src... align="left" hspace=15 vspace=5>
http://www.htmlhelp.com/reference/html40/special/img.html
nkaisare
03-21-2003, 03:28 PM
Originally posted by Beauchamp
<img src... align="left" hspace=15 vspace=5>
Better way as suggested by Dave is
<img src="image.gif" alt="Image Description" style="float: left; margin: 15px 5px;">
Note:
"margin: #px;" implies all margins are #px
"margin: #px $px;" implies top, bottom are #px; left, right margins are $px
"margin: #px $px *px &px" implies top, right, bottom, left margins respectively.