collapsing-table-borders-010.xht (1698B)
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 column 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 border of a specific table column 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 #colgroup 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 column in the three-by-three table below.</p> 27 <table> 28 <colgroup> 29 <col /> 30 </colgroup> 31 <colgroup id="colgroup"> 32 <col /> 33 </colgroup> 34 <colgroup> 35 <col /> 36 </colgroup> 37 <tr> 38 <td></td> 39 <td></td> 40 <td></td> 41 </tr> 42 <tr> 43 <td></td> 44 <td></td> 45 <td></td> 46 </tr> 47 <tr> 48 <td></td> 49 <td></td> 50 <td></td> 51 </tr> 52 </table> 53 </body> 54 </html>