As an alternative to using an inline graphic image,
you can insert a graphic in a body of text, and have the
text flow around the image. The effect in this example is accomplished
by using an ALIGN attribute with a value of "left" within the IMG tag.
By starting the text before inserting an image, you will create a wrap-around
effect with the text. Only a few words are needed before you insert the
image to indicate that you desire this effect. The text, if long enough, will wrap
around both the top and the bottom of the image. This can help you create a web page
that is very pleasing to the eye!
text
<IMG data-lost-SRC="madhacker.gif" ALIGN="left">
text
Now I will place an image
in the text aligning the image with the right border
of my page. The text will flow around the image.
It is the same procedure as before, only we use the "right" value with the ALIGN attribute.
text
<IMG data-lost-SRC="madhacker.gif" ALIGN="right">
text
You can stop the flow
of text and have it restart after the image. You will use
the <BR> command with the CLEAR attribute with a value
of "left" when your image is left aligned.
If you begin the text before
you insert the image, insert the image, and then type more text, the body
of text will wrap around the image until you insert the <BR> command. Insert
the <BR> command at the exact point you wish the text to stop.
text
<IMG data-lost-SRC="madhacker.gif" ALIGN="left">
text
<BR CLEAR="left">
text
You can do the same thing with an
image aligned to the right. Remember that your text will continue to wrap
around your image until you insert the <BR>.
You will use the <BR> command with the CLEAR attribute with
a value of "right" in this instance.
text
<IMG data-lost-SRC="madhacker.gif" ALIGN="right">
text
<BR CLEAR="right">
text
Now we want to insert two images.
We use the ALIGN attribute with the appropriate values ("right" or "left") for each
tag and type our text as we have in the previous examples. The text will begin before
the images and flow between them expanding to both margins as they clear the images.
This will work with graphics that are the same size as each other and with graphics that aren't.
This can create a fun effect for your page.
text
<IMG data-lost-SRC="madhacker.gif" ALIGN="left">
<IMG data-lost-SRC="madhacker.gif" ALIGN="right">
text
If at any time you want your text to begin on the same line as your images,
simply insert your images first and then type your text.
This is true for the single images we've worked with
as well as this double image example.
<IMG data-lost-SRC="madhacker.gif" ALIGN="left">
<IMG data-lost-SRC="madhacker.gif" ALIGN="right">
text
If you want your images to appear without the text either before them
or between them, but underneath them, you will need to use the <BR>
command with a CLEAR="all" attribute and value.
Insert your images first, then your break command tag.
<IMG data-lost-SRC="madhacker.gif" ALIGN="left">
<IMG data-lost-SRC="madhacker.gif" ALIGN="right">
<BR CLEAR="all">
text
Now for an example
of text wrapped around an image with no additional spacing around the image.
When you insert an image into your text, your text will flow very close to
the edges of your image by default. This is actually how all of the previous
examples have been set up because I've never indicated otherwise.
In some cases, this is fine, in others, a little more "white space"
around your image is more pleasing to the eye.
text
<IMG data-lost-SRC="madhacker.gif" ALIGN="left">
text
Now we will use the same
image but add the VSPACE and HSPACE attributes
to create some space around our image.
VSPACE creates space on the top and bottom of
the image, and HSPACE creates space on both sides of the image.
The values for these attributes is equal to the number of pixels
of space you wish to create. Remember, there are 72 pixels in an inch!
You, as the designer, get to decide when to use this effect and how
much space to create around your images.
text
<IMG data-lost-SRC="madhacker.gif" ALIGN="left"
VSPACE="20" HSPACE="20">
text