Topic awaiting preservation: Matching the height of a table with a div |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Indiana, PA |
posted 01-09-2006 20:18
If I want to take a div and strech it out so that it is the same height as a % sized table, how do I go about this? |
Paranoid (IV) Inmate From: Norway |
posted 01-09-2006 20:32 |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 01-09-2006 20:41
Note this has to be done using a page onload handler (or from some event after the page loads). If you just do it with a script in the head it will error. |
Paranoid (IV) Inmate From: Indiana, PA |
posted 01-09-2006 20:49
Wow that's so great! Thanks alot! |
Maniac (V) Mad Scientist From: :morF |
posted 01-10-2006 05:11
You should also, I believe, be able to place a wrapper div around the table and the div you want ot match its height, invisibly, and have the matching div's height set to 100%. It should* then stetching up and down to fit the height of the wrapper, no matter how big it may get. |
Paranoid (IV) Inmate From: Norway |
posted 01-10-2006 09:17 |
Maniac (V) Mad Scientist From: :morF |
posted 01-10-2006 12:03
Hmm... let me throw something together, and we shall see the whichness of the why. |