collapsing-table-borders-005.xht (1608B)
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: All of a row group 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 borders for all four sides of a specific table row group 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 #tbody 20 { 21 border: 10px solid blue; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if there is a blue border around the middle row in the three-by-three table below.</p> 27 <table> 28 <tbody> 29 <tr> 30 <td></td> 31 <td></td> 32 <td></td> 33 </tr> 34 </tbody> 35 <tbody id="tbody"> 36 <tr> 37 <td></td> 38 <td></td> 39 <td></td> 40 </tr> 41 </tbody> 42 <tbody> 43 <tr> 44 <td></td> 45 <td></td> 46 <td></td> 47 </tr> 48 </tbody> 49 </table> 50 </body> 51 </html>