<SPACER>NN 3   IE n/a   HTML n/a
<SPACER>End Tag: Forbidden
 

As a solution to the need for creating blank space without forcing &nbsp; entities, incessant <P> tags, or transparent images, Navigator 3 introduced the SPACER element. This element creates empty space within a line of text, between lines, or as a rectangular space. Some of this functionality can be re-created in a cross-browser implementation with style sheets.

 
Example
<P>This is one line of a paragraph.
<SPACER TYPE="vertical" SIZE=36>
And this completes the paragraph with a three-line gap from the first line.</P>
ALIGNNN 3   IE n/a   HTML n/a
ALIGN="alignmentConstant"Optional
 

Determines how the rectangle of the SPACER element aligns within the context of surrounding content. See the section "Alignment Constants" earlier in this chapter for a description of the possibilities.

 
Example
<SPACER TYPE="block" HEIGHT=90 WIDTH=40 ALIGN="absmiddle">
 
Value
Case-insensitive constant value. All constant values are available in Navigator 4.
 
Default bottom
HEIGHT, WIDTHNN 3   IE n/a   HTML n/a
HEIGHT="pixelCount"
WIDTH="pixelCount"
Required
 

The size that a block type SPACER element occupies in a document is governed by the HEIGHT and WIDTH attribute settings. These attributes apply only when the TYPE attribute is block.

 
Example
<SPACER TYPE="block" HEIGHT=150 WIDTH=250>
 
Value
Positive integer values (optionally quoted).
 
Default 0
SIZENN 3   IE n/a   HTML n/a
SIZE="pixelCount"Optional
 

The number of pixels of whitespace to insert either horizontally or vertically, depending on whether the TYPE attribute is set to horizontal or vertical. If the TYPE attribute is set to block, the SIZE attribute is ignored.

 
Example
<SPACER TYPE="horizontal" SIZE=40>
 
Value
Any positive integer.
 
Default 0
TYPENN 3   IE n/a   HTML n/a
TYPE="spacerType"Required
 

Defines which of the three spacer geometries is being specified for the SPACER element. A type of horizontal adds empty space in the same line of text as the preceding content; a type of vertical adds empty space between lines of text; and a type of block defines a rectangular space that extends in two dimensions. For the horizontal and vertical types, the SIZE attribute must be assigned; for the block type, the HEIGHT and WIDTH attributes must be assigned.

 
Example
<SPACER TYPE="horizontal" SIZE=40>
 
Value
Any of three case-insensitive constant values: block | horizontal | vertical.
 
Default horizontal
Hosted by uCoz