Idocs Guide to HTML

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.

illustration of HSPACE 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.

illustration of VSPACE 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.

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.