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!

showing empty table 2

Status
Not open for further replies.

maxpower1

Programmer
Jul 29, 2001
488
US
How do you make a table's rows and columns lines appear even if the table is empty?

thanks

~za~
You can't bring back a dead thread!
 
If you add a non-breaking space ( ) to empty cells, this should make the borders visible:

Example:
<table border=&quot;1&quot;>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>&nbsp;</td>
</tr>
</table>

Also, see
 
My bad, the example should be:

<table border=&quot;1&quot;>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>&nbsp;</td>
</tr>
</table>

Thanks ConeHead for the correction
 
OK...lol, I'm a bonehead.

<td>& N B S P ;</td>

with no spaces.
 
thread215-687991 thread showed how you write &nbsp; so that it shows up.
 
Thanks for the link Vragabond...I knew there had to be a way to write it & it show up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top