The SPACER element attempts to give the author more control
over white space in HTML documents. The author can control horizontal-only
spacing, vertical-only spacing, or block spacing (vertical and horizontal)
as well.
Specific Attributes
Align
2 | 3
| 3.2 | 4
| IE | M
| N3B5 | O
Required? No
Description:
This attribute only applies when the TYPE is Block.
It controls alignment of the surrounding text relative to the spacing block.
Values: Left | Right |
Top | Texttop |
Middle | Absmiddle |
Baseline | Bottom |
Absbottom
Height
2 | 3
| 3.2 | 4
| IE | M
| N3B5 | O
Required? No
Description:
This attribute only applies when the TYPE is Block.
It controls the pixel height of the Block
[Rectangle] SPACER element.
Values: Positive integers.
Size
2 | 3
| 3.2 | 4
| IE | M
| N3B5 | O
Required? No
Description:
This attribute only applies when the SPACER has a TYPE of
Horizontal or
Vertical. It controls the pixel width or height
of the SPACER element.
Values: Positive integers.
Type
2 | 3
| 3.2 | 4
| IE | M
| N3B5 | O
Required? Yes
Description:
The values for TYPE allow different types of control over whitespace
spacing.
Values: Horizontal:
[DEFAULT]
This TYPE inserts horizontal space between text or content objects.
The amount of space is
specified by the SIZE attribute. Other SPACER attributes will be ignored. Vertical:
This TYPE inserts vertical space between lines. The amount of space is
specified by the SIZE attribute. Other SPACER attributes will be ignored. Block:
This TYPE behaves exactly like a transparent image. When this type is
used, the SIZE attribute will be ignored and Height, Width and Align
will be analyzed in its place.
Width
2 | 3
| 3.2 | 4
| IE | M
| N3B5 | O
Required? No
Description:
This attribute only applies when the TYPE is Block.
It controls the pixel width of the Block
[Rectangle] SPACER element.
Values: Positive integers.
Example
<spacerTYPE="block"
ALIGN="left" WIDTH=100
HEIGHT=100>
This is text that began with a SPACER element. Do you like it?
<brCLEAR="left">
This element is not a part of any HTML standard or draft and is not
ever likely to be, due to the wider control allowed through
Cascading Style Sheets
that have been incorporated in HTML 4.0 as well as Netscape's
browser. Use of SPACER is discouraged.
DTD Note: No DTD information exists
regarding this element. The behavioral model used here was the IMG
element, which this element most closely resembles in attributes and
intended behavior. The attribute requirement qualifications are only
personal guesses and should not be taken as gospel (like the TYPE
attribute being required - since HORIZONTAL is the default value, this
is probably not required, but rather just a 'good idea'.)