|
Backgrounds can be added to each cell by using the BACKGROUND tag
<TD BACKGROUND="graphics/redchalk.jpg">Row 1, Cell 1</TD> |
|
or by using the BGCOLOR tag
<TD BGCOLOR="#FFFFFF">Row 1, Cell 1</TD> |
|
We can control the width of the borders by using the BORDER tag
<TABLE BORDER="10"> |
|
The color of the border can be controlled by using the BORDERCOLOR tag.
<TABLE BORDER="10" BORDERCOLOR="RED"> |
|
By using the CELLPADDING and CELLSPACING tags and turning off the border, we can put the cells next to eachother without any spaces between them.
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"> Here is an example of how this can be used. |
|
By using the ALIGN tag, we can control the alignment of the contents of the cells.
<TD ALIGN="LEFT | RIGHT | CENTER"></TD> |
||||
|
By using the VALIGN tag, we can control the vertical alignment of the contents of the cells.
<TD VALIGN="TOP | BOTTOM | MIDDLE"></TD> |
||||
|
Tables and their cells normally expand and contract to fit the contents of the cells. |
|
However, by using the HEIGHT and WIDTH commands, we can control the size of the table or its cells.
<TD HEIGHT="100" WIDTH="100">Row 1, Cell 1</TD> |
This page was last modified