Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating border around cells with no text in them 1

Status
Not open for further replies.

anpfire

Programmer
Oct 8, 2003
22
CA
Hi,
I am creating a dynamic table, which gets its information from an Access database. Some fields in the database are empty and the problem is that there is no border around the cell whose field is empty. I want to have borders around all cells regardless of whether the cell has text or not.
This is the code I have:

<table border=&quot;1&quot; bordercolor=&quot;#CC0000&quot;>
<% while ((Repeat1__numRows-- != 0) && (!Rset.EOF)) { %>
<tr>
<td><%=(Rset.Fields.Item(&quot;Description&quot;).Value)%></td>
<td><%=(Rset.Fields.Item(&quot;Authors&quot;).Value)%></td>
<td><%=(Rset.Fields.Item(&quot;Title&quot;).Value)%></td>
</tr>
<%
Repeat1__index++;
Rset.MoveNext();
}
%>
</table>

I appreciate any suggestions you can give me.
Anoop.
 
Try putting a &quot;space&quot; in each of your cells, like this:

<td><%=(Rset.Fields.Item(&quot;Description&quot;).Value)%>& nbsp;</td>

That way, even there is no info to populate it, there is still something in it, creating the border.

Hope This Helps!

Ecobb
- I hate computers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top