border-collapse-dynamic-colgroup-003-ref.xht (969B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>border collapse dynamic change to colgroup border style</title> 2 <link rel="author" title="Bernd Mielke" href="mailto:bmlk@gmx.de" /> 3 <style type="text/css"><![CDATA[ 4 td { border: 10px green outset;} 5 table {margin: 30px; border-collapse:collapse} 6 colgroup#reference {border:solid green 10px} 7 ]]></style> 8 </head> 9 <body> 10 11 <p>There should be a continuous solid green border around the center column. All other borders should look as though they are coming out of the canvas.</p> 12 13 <table> 14 <colgroup><col /></colgroup> 15 <colgroup id="reference"><col /></colgroup> 16 <colgroup><col /></colgroup> 17 <tbody><tr><td>c11</td><td>c12</td><td>c13</td></tr></tbody> 18 <tbody> 19 20 <tr><td>c21</td><td>c22</td><td>c23</td></tr> 21 </tbody> 22 <tbody> 23 <tr><td>c31</td><td>c32</td><td>c33</td></tr> 24 </tbody> 25 </table> 26 27 </body></html>