View Full Version : Tables


Temperence
02-08-2005, 02:31 AM
I've read up on everything concerning tables on this site, but what I didn't find is how to make a blank cell. I was told to do this:

<table>
<tr>
<td></td>
<td>text here</td>
<td></td>
</tr>
</table>

That is if I want three cells and something writen in the middle, but when I tried it, it didn't work. The text still showed up on the top left hand side.

What am I doing wrong?

Monkey Bizzle
02-08-2005, 02:35 AM
since there is no info in the cells, they appear as nothing. you either have to set a width to them, or just put &nbsp; over and over again in the "blank" cells so that they have some info to stretch them out.

Temperence
02-08-2005, 02:37 AM
Thanks, I'm gonna try that

Temperence
02-08-2005, 02:42 AM
It worked. How do I make a blank row? I tried <tr width="100%"><t/tr>, but that didn't work.

kittycat
02-08-2005, 03:12 AM
<tr width="100%"><td>&nbsp;</td></tr>
If you want it to be a specific height you may have to add that in as well.

pb&j
02-08-2005, 04:00 AM
and if you are adding that row to your current table, be sure to make it like this...
<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>

or like this...
<tr colspan="3"><td>&nbsp;</td></tr>

either way, it will then equal three cells like your other row you currently have.