Wrapping Text Around an Image


Text Wrap Example:
Image In many cases you might want to have text wrap around an image on your page in a paragraph. You can have the text align to the left or to the right of the image. The text can not wrap around an image in the center. You can also include spacing using CSS margins and a border using CSS border code. Below on this page is code you can copy and past onto your webpages to have a wrapping text image included in your paragraph. The margins can be set for top, right, bottom and left and can be as much spacing as you would like. Notice in this example the spacing under the image is uneven. You may need to experiment with the size of the image and amount of margin spacing depending on your text size.

Image align:
To have text wrap around an image you will use the HTML image "align" attribute. Place the image code from any example below just before your text that you want to have wrap. You can select and copy the code on this page and paste it into your HTML page. Place an image named "yourimage.jpg" in your "picts" folder.


Basic image align right code:

<img src="picts/yourimage.jpg" height="75" width="75" border="0" alt="Image" align="right">


Image align left with margin spacing code:

<img src="picts/yourimage.jpg" height="75" width="75" border="0" alt="Image" align="left" style="margin: 5px 5px 0px 0px;">

Note: Margins above and below are in order; top, right, bottom, left.


Image align left with margins and a border code:

<img src="picts/yourimage.jpg" height="75" width="75" border="0" alt="Image" align="left" style="margin: 5px 5px 0px 0px; border: #000000 1px solid;">

Allwebco Template Support


Allwebco Website Template Support


See Also...
Adding Images


Photo Gallery Templates
Wesite templates for photographers.
AllwebcoDesign.com
Web Template Support
Museum Web Templates
Art and photo gallery web templates.
AllwebcoDesign.com



Website Template Support
Website Template Support