| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| <html> |
| <head> |
| <title>CSS Test: Table columns - HTML table 'rules' attribute on columns</title> |
| <meta name="assert" content="The outer edges of each table should have no borders."> |
| <meta name="assert" content="The first table should have two vertical lines interesecting two horizontal lines."> |
| <meta name="assert" content="The second vertical line in the first table should be all green."> |
| <meta name="assert" content="The horizontal lines in the third column of the first table should be all blue."> |
| <meta name="assert" content="The second table should have just two horizontal lines."> |
| <meta name="assert" content="The third table should have just two vertical lines."> |
| <style type="text/css"> |
| table |
| { |
| border-collapse: collapse; |
| border-style: hidden; |
| } |
| .col1 |
| { |
| border-style: none solid; |
| border-width: 1px; |
| } |
| .row |
| { |
| border-style: solid; |
| border-width: 1px; |
| } |
| td |
| { |
| height: 20px; |
| width: 20px; |
| } |
| </style> |
| </head> |
| <body> |
| <table rules="rows"> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| </table> |
| <br> |
| <table rules="cols"> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| </table> |
| <br> |
| <table rules="all"> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| <td></td> |
| </tr> |
| </table> |
| </body> |
| </html> |