Example The following example specifies that only the borders between the rows should be visible: <table rules="rows"...
Example
The following example specifies that only the borders between the rows should be visible:<table rules="rows"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>March</td> <td>$150</td> </tr> </table> |
Definition and Usage
The rules attribute specifies which parts of the inside borders that should be visible.For practical reasons, it may be better to not specify any rules, and use CSS instead.
Browser Support
The rules attribute is properly displayed in Firefox and Opera.Internet Explorer, Chrome, and Safari 3 displays this attribute incorrectly.
- IE: Adds the four outside borders in addition to the inside borders
- Chrome and Safari: Adds the affected outside borders in addition to the inside borders
Syntax
<table rules="value"> |
Attribute Values
Value | Description |
---|---|
none | No lines |
groups | Lines between row groups and column groups |
rows | Lines between rows |
cols | Lines between columns |
all | Lines between rows and columns |