border-collapse-dynamic-table-001-ref.xht (932B)
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 table border color</title> 2 <link rel="author" title="Bernd Mielke" href="mailto:bmlk@gmx.de" /> 3 <style type="text/css"><![CDATA[ 4 td { border: 10px green solid;} 5 table {margin: 30px; border-collapse:collapse; border:solid yellow 11px} 6 ]]></style> 7 </head> 8 <body> 9 10 <p>There should be a continuous solid yellow border around a grid of 3 rows and 3 columns. All borders inside the grid should be continuous solid green.</p> 11 12 <table> 13 <colgroup><col /></colgroup> 14 <colgroup><col /></colgroup> 15 <colgroup><col /></colgroup> 16 <tbody><tr><td>c11</td><td>c12</td><td>c13</td></tr></tbody> 17 <tbody> 18 19 <tr><td>c21</td><td>c22</td><td>c23</td></tr> 20 </tbody> 21 <tbody> 22 <tr><td>c31</td><td>c32</td><td>c33</td></tr> 23 </tbody> 24 </table> 25 26 </body></html>