This Netscape specific attribute can be used to include hard coded white space in a document. It accepts the following attributes :
TYPE="horizontal|vertical|block"
The TYPE
of <SPACER>
can be either horizontal
, vertical
or block
. A horizontal <SPACER>
inserts horizontal white space in between words. A vertical <SPACER>
inserts vertical space between lines and the block <SPACER>
behaves like an image (except doesn't display an image.) It essentially, reserves a block of space within the document.
SIZE="value"
When a <SPACER TYPE="horizontal">
or <SPACER TYPE="vertical">
is used, the SIZE
attribute specifies its size in pixels. Any setting of this attribute is ignored if a <SPACER TYPE="block">
is used.
WIDTH="value"
When a <SPACER TYPE="block">
is used, the WIDTH
attribute specifies the WIDTH
of the block to be reserved as white space.
HEIGHT="value"
When a <SPACER TYPE="block">
is used, the HEIGHT
attributes specifies the HEIGHT
of the block to be reserved as white space.
ALIGN="alignment"
When a <SPACER TYPE="block">
is used, the ALIGN
attributes specifies the alignment of the white space block and can accept any alignments as used by the <IMG>
element for embedding images.
Example
The following HTML fragment inserts a horizontal spacer of 25 pixels between two words, as shown below
<P>Hello and Welcome<SPACER TYPE="horizontal" SIZE="25">to the HTML Reference Library. To those of you familiar with the previous incarnation of this project (The HTML Reference Library - HTMLib in Windows .HLP format) the content and working of these pages will probably be obvious.
would display as :
Hello and Welcome to the HTML Reference Library. To those of you familiar with the previous incarnation of this project (The HTML Reference Library - HTMLib in Windows .HLP format) the content and working of these pages will probably be obvious.
© 1995-1998, Stephen Le Hunte
file: /Techref/language/html/ib/White_Space/spacer.htm, 3KB, , updated: 2004/3/1 15:05, local time: 2024/12/27 02:21,
3.144.28.90:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/language/html/ib/White_Space/spacer.htm"> <SPACER></A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.