View Full Version : Table Problem!


XxILostMyMindxX
11-06-2003, 11:37 PM
Hello! I am having trouble with a table. I want it to be in the center of my page, but what ever i try.. it doesnt work! I

would also like it to be 800px in width, but I would like it to be flexible in length (if you can do that). I would like to put tables on either side, but I dont know how long they'll run. Is there anyways I can get something like an expandible length for my table? thanx!

Alcy
11-07-2003, 12:38 AM
You mean you want the table centered vertically and horizontally?
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
YOUR TABLE HERE
</td>
</tr>
</table>

As long as you don't specify a length for the table, it'll expand to accomodate the amount of text inside.

Y3llow
11-07-2003, 04:07 AM
<center>
<table width="800" cellpadding="0" cellspacing="0">
<tr>
<td>
Stuff goes here.
</td>
</tr>
</table>
</center>

That should center your table and make it 800 pixels wide and it will be as long as what ever it has in it.

XxILostMyMindxX
11-07-2003, 08:33 PM
Oh ok.. thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!