In the following code, I need the inner table (the table that has the word test in it) to fill it's container to 100%. The outer most table's content may change, so I'm wanting the inner table to be able to always fill it's area to 100%.
The strange thing I noticed is that if I set the outer table's hieght to 200px or 500px, then the inner table will fill 100% of it's area, which is good ; however, this is not a valid technique to fix this issue because the outer table's amount of data could always change so I can't set the outer's table height to a fixed height.
I have read through several other posts on experts-exchange and other links that talk about the same problem, but i'm not able to get it to work with my code.
How can I get the inner table to expand to 100% of the <TD> that it is in? An example would be appreciated over a link.
Hmm I really tried to help here but I do not see any problem with this table. I get this code you provided, and check it on FF, Opera, IE, and Safari and all looks the same and table uses 100% of window, so maybe I just understand you wrong or something.. huh :)
rcearley
ASKER
that would explain why no-one has posted any responses. ok, i see that i'm missing the doctype parameter. the code above should look like the following. note that the only difference is the doctype. it seems that if i remove the doctype then it works, but i use doctype, then the inner table doesn't go to 100%.
The problem i see now is that if i remove doctype, then all of my stylesheet formatting doesn't work.
It works on your machine with the same doctype element? I'm running IE 6 and it's not working on mine. I tried 3 other doctype options I found on the element and they fix the height problem...but the doctype element removed all stylesheet settings as well.