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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Insert a blank row in a table

Status
Not open for further replies.

ravula2000

IS-IT--Management
Mar 8, 2002
205
US
I tried to insert a blank row in a table.

<table border cellspacing=0 cellpadding=0>
<tr></tr>
</table>
didn't worked..

this works..
<table border cellspacing=0 cellpadding=0>
<tr><td></td></tr>
</table>

what is the reason..?
 
Code:
<table border=0 cellspacing=0 cellpadding=0 height=100>
<tr><td height=30 colspan=1></td></tr>
<tr><td height=70 colspan=1>not blank</td></tr>
</table>

the border atribute must =something
always place colspan is good practice
in the first <td> u can also place a '& n b s p ;' (no space)
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Thanks for your suggestions. I will follow these things..
 
<TR> means &quot;table row&quot;
<TD> means &quot;table data&quot;

a row isn't a row unless it has data in it. so if your put a million <TR></TR>, it won't skip down until you put in data. The way to do that is by putting <TR><TD></TD></TR>

Hope this helps!
colorado.gif

&quot;Quest for the Cup - 2002!&quot;
&quot;Onto the 2nd round!&quot;

 
You'll probably get formatting you don't want unless you actually put SOMETHING inside the cell too. IE 5.5 leaves off the cell borders when a cell is empty. Put a 1x1 transparent gif image or a space inside the cell.

BTW, I disagree that it's always a good idea to use colspan. There's no point in including colspan=1 in your code. It just makes it wordier without accomplishing a single useful thing. I notice you didn't include rowspan=1. If the one is a good idea, wouldn't the other be a good idea too?
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top