collapsing-table-borders-004.xht (1454B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Part of a row border can be specified</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders" /> 7 <meta name="assert" content="The border for a specific table row can be specified under the collapsing border model." /> 8 <style type="text/css"> 9 table 10 { 11 border-collapse: collapse; 12 } 13 td 14 { 15 border: 1px solid black; 16 height: 50px; 17 width: 50px; 18 } 19 #row 20 { 21 border-top: 10px solid blue; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if there is a blue border across the top of the middle row in the three-by-three table below.</p> 27 <table> 28 <tr> 29 <td></td> 30 <td></td> 31 <td></td> 32 </tr> 33 <tr id="row"> 34 <td></td> 35 <td></td> 36 <td></td> 37 </tr> 38 <tr> 39 <td></td> 40 <td></td> 41 <td></td> 42 </tr> 43 </table> 44 </body> 45 </html>