Learn HTML Code Tutorial Reference Guide

<SPACER ...>

Usage Recommendation
use it, but don't rely on it

  • TYPE: what type of space is this
  • ALIGN: align left or right
  • SIZE: how tall or wide
 

Occasionally you will find that you want to put some empty space into your document to spread things out. Frequently this has been done with <IMG ...> by using "invisible" images which are either entirely transparent, or are the same color as the background. Unfortunately, both of these methods are unreliable. <SPACER ...> is Netscape's answer to this need for including blank space in your document. <SPACER ...> is like an image, except that there is not actually a picture in the space where the image would be.

You must specify the spacer as one of three types: vertical; horizontal; and block, which is both vertical and horizontal. Use the TYPE attribute to do this.

Here's a few examples of <SPACER ...> using various attributes:

this code produces this
hey man hey man 

<SPACER TYPE=VERTICAL SIZE=100>

hey man hey man hey man
hey man hey man hey man hey man hey man
hey <SPACER TYPE=HORIZONTAL SIZE=100> man
hey man
<SPACER TYPE=BLOCK HEIGHT=50 WIDTH=50 ALIGN=LEFT>
text
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man
hey man hey man hey man




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial