![]() | ![]() |
|
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 tag can be nested into any other HTML element, like tables or frames. They can also be controlled by JavaScript for all values. |
![]() | |||||||||||||||||||||
| ALIGN |
This attribute defines how the spacer is positioned on the page.
| ||||||||||||||||||||
| HEIGHT |
The height of the spacer specified as a number of pixels or as a percentage of screen height. | ||||||||||||||||||||
| SIZE |
The number of pixels the spacer should occupy. | ||||||||||||||||||||
| TYPE |
Valid values are HORIZONTAL, VERTICAL and BLOCK. | ||||||||||||||||||||
| WIDTH |
The width of the spacer specified as a number of pixels or as a percentage of screen width. | ||||||||||||||||||||
![]() | ![]() |
| 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: |
|
| 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 |
| Source: | <SPACER TYPE=BLOCK ALIGN=RIGHT WIDTH=100 HEIGHT=100> The tag can also be used like an invisible IMG tag. By supplying a WIDTH and HEIGHT results in an empty rectangular space not covered with any text at all. |
| Result: |
|