title: Table borders when no data in cell
body: <p>I have a table that has a couple of cells that do not contain data:    </p>
  
  <pre><code>&lt;table id="table_id2" CellPadding="0" CellSpacing="0" border="1"&gt;
   &lt;tr style="background-color:#D1DEB6"&gt;&lt;td&gt;Test 1&lt;/td&gt;&lt;td class="y_n"&gt;Y&lt;/td&gt;&lt;/tr&gt;
   &lt;tr style="background-color:#C7D6A7"&gt;&lt;td&gt;Test 2&lt;/td&gt;&lt;td class="y_n"&gt;N&lt;/td&gt;&lt;/tr&gt;
   &lt;tr style="background-color:#D1DEB6"&gt;&lt;td&gt;&lt;/td&gt;&lt;td class="y_n"&gt;Y&lt;/td&gt;&lt;/tr&gt;
   &lt;tr style="background-color:#C7D6A7"&gt;&lt;td&gt;&lt;/td&gt;&lt;td class="y_n"&gt;Y&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I you look carefully you'll notice the borders are inconsistant. The borders appear but not for the cells without any data in them. Does anyone know a solution to this? I know you can put a <code>&amp;nbsp</code> in to get the borders but this isn't an option for me the reason being that some cell have labels in them like:</p>
  
  <pre><code>&lt;asp:Label ID="Label2" runat="server" Text='&lt;%# Eval("Name") %&gt;' /&gt;
  </code></pre>
  
  <p>It's causing problems when say the Name is null then I'm missing the borders for the empty cell.</p>