W3 3.2n
4.0n
NS 3.0y
4.0y
IE 3.0n
4.0n
TV 1.2y
2.1y

<SPACER>

Description

With a spacer you can control the horizontal whitespace that appears between words in a line, the vertical whitespace that appears between lines on a page, or set up rectangular spacing elements.

The element can be nested into any other HTML element, like tables or frames. They can also be controlled by JavaScript for all values.

Attributes

W3 3.2n
4.0n
NS 3.0y
4.0y
IE 3.0n
4.0n
TV 1.2y
2.1y
ALIGN
This attribute defines how the spacer is positioned on the page.

Value Description
ABSBOTTOM Aligns the bottom of the spacer with the bottom of the current line.
ABSMIDDLE Aligns the middle of the spacer with the middle of the current line.
BASELINE Aligns the bottom of the spacer with the baseline of the text in the line. This value does the same as align="bottom".
BOTTOM Aligns the bottom of the spacer with the baseline of the text in the line. This value does the same as align="baseline".
LEFT Places the spacer at the left margin of the page.
MIDDLE Aligns the middle of the spacer with the baseline of the text.
RIGHT Places the spacer at the right margin of the page.
TEXTTOP Aligns the top of the spacer with the top of the text in the line.
TOP Aligns the top of the spacer with the top of the largest item in the line.


W3 3.2n
4.0n
NS 3.0y
4.0y
IE 3.0n
4.0n
TV 1.2y
2.1y
HEIGHT
The height of the spacer specified as a number of pixels or as a percentage of screen height.
W3 3.2n
4.0n
NS 3.0y
4.0y
IE 3.0n
4.0n
TV 1.2y
2.1y
SIZE
The number of pixels the spacer should occupy.
W3 3.2n
4.0n
NS 3.0y
4.0y
IE 3.0n
4.0n
TV 1.2y
2.1y
TYPE
Valid values are HORIZONTAL, VERTICAL and BLOCK.
W3 3.2n
4.0n
NS 3.0y
4.0y
IE 3.0n
4.0n
TV 1.2y
2.1y
WIDTH
The width of the spacer specified as a number of pixels or as a percentage of screen width.

Examples

Source
<SPACER type="horizontal" size="100">This text is just some text to show
how the spacer works. So notice how the beginning of this text
indents 100 pixels.
 
Result
This text is just some text to show how the spacer works. So notice how the beginning of this text indents 100 pixels.
 
Source
The second example shows the use of a vertical spacer. Here it is
used to force <SPACER type="vertical" size="30"> a break between these
two lines, which is exactly 30 pixels.
 
Result
The second example shows the use of a vertical spacer. Here it is used to force a break between these two lines, which is exactly 30 pixels.
 
Source
<SPACER type="block" align="right" width="100" height="100">
The element can also be used like an invisible IMG element. By supplying a
WIDTH and HEIGHT results in an empty rectangular space not covered
with any text at all.
 
Result
The element can also be used like an invisible IMG element. By supplying a WIDTH and HEIGHT results in an empty rectangular space not covered with any text at all.
Statistics