TABLE.rules (Property)

Controls the drawing of border rules around table cells.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myTABLE.rules

This property controls which parts of a table's inner borders are rendered into the display. The following keywords are supported by this property:

allAll borders are placed around all cells
colsBorders only delimit columns of cells
groupsBorders are placed between cell groups
noneNo borders between cells are displayed at all
rowsBorders only delimit rows

Where borders are used to delimit groups of cells, the groups are established with the <THEAD>, <TBODY>, <TFOOT>, <COLGROUP> or <COL> HTML tags.

The rules property affects the inner borders around the cells in the table. The frame property controls the ruled edges around the outside of the table. Table ruling and bordering is quite complex and some time spent messing around with the property values is worthwhile.


See also:COL object, COLGROUP object, TABLE.frame, TBODY object, TFOOT object, THEAD object