PDA

Click to See Complete Forum and Search --> : Table size based on browser size?


Sastraxi
May 11th, 2001, 07:01 PM
I have tables and they are set up like this:

<TABLE>
<TR>
<TD WIDTH=20%>&nbsp;</TD>
<TD WIDTH=60%>&nbsp;</TD>
<TD WIDTH=20%>&nbsp;</TD>
</TR>
</TABLE>

However, the middle frame only expands to fit what content is inside it, not how wide the browser is.

How can I make it so it is always the same size even if there is no content in it?

sail3005
May 12th, 2001, 09:19 AM
try this:


<TABLE width="100%">
<TR>
<TD WIDTH=20%> </TD>
<TD WIDTH=60%> </TD>
<TD WIDTH=20%> </TD>
</TR>
</TABLE>

Sastraxi
May 12th, 2001, 09:43 AM
It is better, but now the right 20% column has vanished, leaving 20% and 80% columns. But thats not how I coded it...

Sastraxi
May 12th, 2001, 09:50 AM
Hmmm... for some reason it works now, ended up using no width tags in <TD> tags, and using this <TABLE> tag:

<TABLE Width=100% COLS=20%,60%,20% CELLPADDING=6px BORDER=0>

Oh well.

sail3005
May 12th, 2001, 10:17 AM
Originally posted by Sastraxi
It is better, but now the right 20% column has vanished, leaving 20% and 80% columns. But thats not how I coded it...

Thats strange because it works fine for me...
Oh well, at least you got it working

Sastraxi
May 12th, 2001, 11:00 AM
Actually I realised why all my other attempts weren't working;

I was using an ASP page and it was cached...
Thanks for your support!

kayoca
May 14th, 2001, 02:26 AM
If you dont want the column to be vanished use nowrap in your TD tag. :)