Another useful tool in your layout toolbox is the invisible spacer
.GIF.
An invisible spacer .GIF is a one pixel by one pixel square with a
transparent background that can be used to space things according to
exact pixel locations.
Because the spacer is invisible, it will look as if, you have a
greater degree of control over the positioning of text.
For example, consider the following example:
Here is some regular text
Here is some text that has apparently been tabbed over. How could you
do this with regular HTML? The answer is that you could not.
So how did we get that tab effect?
Well simply, we used our invisible spacer .GIF with the following
code:
Here is some regular text
<BR><IMG SRC = "dot_clear.gif"
BORDER = "0"
WIDTH = "40" HEIGHT = "1">
Here is some text that has apparently been
tabbed over. How could you do this with regular HTML?
The answer is that you could not.
In the next example, we will put a one pixel border around the
spacer so you can see it in action:
Here is some regular text
Here is some text that has apparently been tabbed over. How could you
do this with regular HTML? The answer is that you could not.
You can also use the spacer .GIF to create vertical space as well.
Check out this usage (We will keep the border around the spacer so you
can see what is happening:
Here is some regular text
Here is some text that has apparently been tabbed over. How could you
do this with regular HTML? The answer is that you could not. [1]
You will very often wish to have more control over the extra space
between paragraphs than afforded by the <P> tag.
Note that you can grab the invisible spacer .GIF used on this page
and download it to your local Images directory for your own use. It is
on the house.