| <!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 first two tables are empty boxes."> |
| <meta name="assert" content="The second table should have just two horizontal lines - one for the top edge of the table, one for the bottom edge."> |
| <meta name="assert" content="The third table should have just two vertical lines - one for the left edge of the table, one for the right edge."> |
| <style type="text/css"> |
| table |
| { |
| border-collapse: collapse; |
| } |
| .tableborder |
| { |
| border-style: solid; |
| border-width: 1px; |
| } |
| .tablenone |
| { |
| border-style: none; |
| } |
| .tablevertical |
| { |
| border-style: none solid; |
| border-width: 1px; |
| } |
| .tablehorizontal |
| { |
| border-style: solid none; |
| border-width: 1px; |
| } |
| td |
| { |
| height: 20px; |
| width: 20px; |
| } |
| </style> |
| </head> |
| <body> |
| <table class="tableborder"> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| </table> |
| <br> |
| <table class="tableborder"> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| </table> |
| <br> |
| <table class="tablehorizontal"> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| </table> |
| <br> |
| <table class="tablevertical"> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td></td> |
| <td></td> |
| </tr> |
| </body> |
| </html> |