javascript TABLE rules
| rules | NN 6 IE 4 DOM 1 |
| Read/Write | |
|
Indicates where (if at all) interior borders between cells are rendered by the browser. In addition to setting the table to draw borders to turn the cells into a matrix, you can set borders to be drawn only to separate borders, columns, or any sanctioned cell grouping (thead, tbody, tfoot, colgroup, or col). The border attribute must be presenteither as a Boolean or set to a specific border sizefor any cell borders to be drawn. Do not confuse this property with the rules[ ] collection of styleSheet objects. Scripted changes to this property do not always yield the desired results, especially in early versions of Netscape 6. |
|
| Example | |
document.getElementById("myTable").rules = "groups";
|
|
| Value | |
Any one case-insensitive rules constant (as a string):
|
|
| Default | |
none (when border=0); all (when border is any other value). |
|
