Html Issues - Tables with empty cells?

Hi there, I've got an ASP program that creates tables dynamically. When I set the border to 1, I see that if the field is empty, the cell that should be empty shows up without a border. For example, if I have a 5x5 table, and 3 cells contain no information in a row, none of the cells have a border. I'm not sure how to make it appear. Thanks Eric Hi there, I've got an ASP program that creates tables dynamically. When I set the border to 1, I see that if the field is empty, the cell that should be empty shows up without a border. For example, if I have a 5x5 table, and 3 cells contain no information in a row, none of the cells have a border. I'm not sure how to make it appear. Obviously the border="1", and I use <tr> to do a line and <td> to do a cell, with an accompinying closure. <table width="100%" border="1" cellpadding="0" CELLSPACING="0"> Thanks Eric

Public Comments

  1. the html code for it is   in the <td> section so it will look like this <td> </td>
  2. You need to have something in the cell to get the borders. You can use a non breaking space. Have your code put   in the cell if the cell would otherwise be blank.
  3. Change <td> </td> into <td>   </td>
  4. You must have something in the table's td tag for it to display correctly in Internet Explorer. I suggest you use a non-breaking space for example: <td>&nbsp;</td>
Powered by Yahoo! Answers