Attributes for <TABLE ...>
HSPACE = integer
VSPACE = integer
HSPACE
and
VSPACE
indicate the amount of horizontal and vertical space to put between the table and surrounding text. They must be used in conjunction with
ALIGN=LEFT
or
ALIGN=RIGHT
. These attributes are only recognized by Netscape.
HSPACE
sets the amount of horizontal space between the table and surrounding text. The following examples demonstrate HSPACE
when it is absent, when it is set to 10, and when it is set to 50.
this code |
produces this |
<TABLE BORDER ALIGN=LEFT>
(no HSPACE ) |
fruit | state |
watermelon | Georgia |
apples | Washington |
blueberries | New Hampshire |
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. |
<TABLE BORDER ALIGN=LEFT HSPACE=10>
|
fruit | state |
watermelon | Georgia |
apples | Washington |
blueberries | New Hampshire |
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. |
<TABLE BORDER ALIGN=LEFT HSPACE=50>
|
fruit | state |
watermelon | Georgia |
apples | Washington |
blueberries | New Hampshire |
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. |
VSPACE
sets the amount of vertical space between the table and surrounding text.
VSPACE
can be confusing because the space below the table
can't break in the middle of a line. The space below the table will almost never be the actual value of VSPACE
, it will usually be a little more. The following examples demonstrate HSPACE
when it is absent, when it is set to 10, and when it is set to 50.
this code |
produces this |
<TABLE BORDER ALIGN=LEFT>
|
fruit | state |
watermelon | Georgia |
apples | Washington |
blueberries | New Hampshire |
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. |
<TABLE BORDER ALIGN=LEFT VSPACE=10>
|
fruit | state |
watermelon | Georgia |
apples | Washington |
blueberries | New Hampshire |
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. |
<TABLE BORDER ALIGN=LEFT VSPACE=50>
|
fruit | state |
watermelon | Georgia |
apples | Washington |
blueberries | New Hampshire |
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. |