Hspace Examples


Hspace = "1", Right Aligned 2 Column 2 Row Table with Border


<TABLE BORDER ALIGN=RIGHT HSPACE="1">
<TR> <TH>Col 1 Row 1</TH> <TH>Col 2 Row 1</TH></TR>
<TR> <TD>Col 1 Row 2</TD> <TD>Col 2 Row 2</TD></TR>
</TABLE>

Col 1 Row 1Col 2 Row 1
Col 1 Row 2Col 2 Row 2
Note: Hspace specifies the distance between the table and the vertical borders of the table. That is it sets the the horizonal space between the table and text. Units are in Pixels. Text will wrap around the table if an Align = Left or Right attribute is given. It will not flow around a Center Aligned table. The text should be placed in the code after the table.

Hspace = "10", Right Aligned 2 Column 2 Row Table with Border


<TABLE BORDER ALIGN=RIGHT HSPACE="10">
<TR> <TH>Col 1 Row 1</TH> <TH>Col 2 Row 1</TH></TR>
<TR> <TD>Col 1 Row 2</TD> <TD>Col 2 Row 2</TD></TR>
</TABLE>

Col 1 Row 1Col 2 Row 1
Col 1 Row 2Col 2 Row 2
Note: Hspace specifies the distance between the table and the vertical borders of the table. That is it sets the the horizonal space between the table and text. Units are in Pixels. Text will wrap around the table if an Align = Left or Right attribute is given. It will not flow around a Center Aligned table. The text should be placed in the code after the table.


Hspace = "1", Left Aligned 2 Column 2 Row Table with Border


<TABLE BORDER ALIGN=LEFT Hspace="1">
<TR> <TH>Col 1 Row 1</TH> <TH>Col 2 Row 1</TH></TR>
<TR> <TD>Col 1 Row 2</TD> <TD>Col 2 Row 2</TD></TR>
</TABLE>

Col 1 Row 1Col 2 Row 1
Col 1 Row 2Col 2 Row 2
Note: Hspace specifies the distance between the table and the vertical borders of the table. That is it sets the the horizonal space between the table and text. Units are in Pixels. Text will wrap around the table if an Align = Left or Right attribute is given. It will not flow around a Center Aligned table. The text should be placed in the code after the table.


Hspace = "10", Left Aligned 2 Column 2 Row Table with Border


<TABLE BORDER ALIGN=LEFT Hspace="10">
<TR> <TH>Col 1 Row 1</TH> <TH>Col 2 Row 1</TH></TR>
<TR> <TD>Col 1 Row 2</TD> <TD>Col 2 Row 2</TD></TR>
</TABLE>

Col 1 Row 1Col 2 Row 1
Col 1 Row 2Col 2 Row 2
Note: Hspace specifies the distance between the table and the vertical borders of the table. That is it sets the the horizonal space between the table and text. Units are in Pixels. Text will wrap around the table if an Align = Left or Right attribute is given. It will not flow around a Center Aligned table. The text should be placed in the code after the table.