<!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 cell color</title>

<style type="text/css">* { margin: 0; padding: 0 }
td { border: 10px green solid;}
table {margin: 30px}
</style>
</head>
<body>
<table style="border-collapse:collapse">
 <tbody><tr><td>c11</td><td>c12</td><td>c13</td></tr>
 <tr><td>c21</td><td style="border-width:11px;border-color:yellow">c22