|
|
|
The following properties can be added to the <table> tag:
Property | Description
| align=
left
center
right
|
left align table
center table
right align table
| background=filename | image inserted behind the table
| bgcolor=#rrggbb | background color
| border=n | border thickness
| bordercolor=#rrggbb | border color
| bordercolordark=#rrggbb | border shadow
| cellpadding=n | distance between cell and content
| cellspacing=n | space between cells
| nowrap | protects agains linebreaks, even though the content might be wider than the browser window.
| frame=
void,
above,
below,
lhs,
rhs,
hsides,
vsides,
box
|
removes all outer borders
shows border on top of table
shows border on bottom of table
shows border on left side of table
shows border on right side of table
shows border on both horizontal sides
shows border on both vertical sides
shows border on all sides of table
| valign=
top
bottom
|
aligns content to top of cells
aligns content to bottom of cells
| width=
n,n
n,n%
|
minimum width of table in pixels
minimum width in percentage of window size
|
|
Note:
Table properties are set for the entire table.
If certain properties are set for single cells, they will have higher priority than the settings for the table as a whole.
|
|
|
|