The HTML Artwork

HTML Image Tag Attributes


BORDER Attribute

Used to set the width in pixels of a link border around the image.

BORDER=1 BORDER=5 BORDER=10

HSPACE and VSPACE

Testing 1 2 3 Testing 1 2 3

Testing 1 2 3 Testing 1 2 3, HSPACE=20

Testing 1 2 3
Testing 1 2 3

Testing 1 2 3
Testing 1 2 3, VSPACE=20


Netscape Alignment Values

Nonstandard alignment values supported by Netscape include: BASELINE, ABSBOTTOM, TEXTTOP and ABSMIDDLE.

We will use our little sailboat to illustrate the Netscape options for the ALIGN attribute. The first 4 are:

Texttop
Align the image with the tallest text in the line. This is usually the same as using ALIGN=top.
Absmiddle
Align the middle of the image with the middle of the current line.
Baseline
Align the image with the baseline of the current line. This is usually the same as using ALIGN=bottom.
Absbottom
Align the bottom of the image with the bottom of the current line.

In the following examples notice how the alignment commands affect the location of the baseline. If you plan on including more than one image in a line, you should be careful of your use of these alignment commands

These images are aligned in this order: texttop, baseline, absbottom, absmiddle.

These images are aligned in this order: baseline, absmiddle, absbottom, texttop.

These images are aligned in this order: textop, absmiddle, absbottom, baseline.


[HTML CD Home Page]
Vivian Neou, vivian@catalog.com
Copyright © 1996 Vivian Neou