HTML and CSS Reference
In-Depth Information
H.1.1.3. Creating blocks of space
The third spacer type creates a rectangular block of blank space, much
like a blank image. Set the type attribute to block and include three oth-
er attributes to fully define the space: width , height , and align .
The width and height attributes specify the size of the spacer in pixels or
as a percentage of the element containing the spacer. These attributes
are used only when the type attribute is set to block and otherwise are
ignored. Similarly, the size attribute is ignored when the <spacer> type
is block . If specifying a size in pixels, you must give a positive integer
value to both the width and height attributes; their default value is 0 .
The third required block spacer attribute, align , controls how Netscape
4 places the empty block relative to the surrounding text. The values
for this attribute are identical to those for the align attribute in the
<img> tag. Use the top , texttop , middle , absmiddle , baseline , bottom , and
absbottom values to obtain the desired vertical alignment of the block
spacer. Use the left and right values to force the block spacer to the
indicated margin and cause the following text to flow up and around the
spacer. The default value is bottom . For a complete description of the
align attribute and its values, see section .
This HTML fragment places the compass points around an empty area:
<spacer type=block width=50 height=50 align=absmiddle>
Figure H-3 shows the resulting document.
Search WWH ::

Custom Search