PDA

View Full Version : fill remaining space at bottom of page with div or table row



scranton
Sep 21st, 2009, 05:25 PM
I'm trying to create a table with about 5 rows where the last row fills the remaining space at the bottom of the page, but it's not working out. The first 4 rows need to be fixed size but the last row needs to scale with the window. I tried setting the table height to 100% and the last row to 99% but then it stretches beyond the bottom of the page. I also tried a javascript onresize event that sets the size of the row but that just results in an infinite loop... does anyone know how I can do this?

abduraooft
Sep 22nd, 2009, 09:15 AM
I tried setting the table height to 100% and the last row to 99% but then it stretches beyond the bottom of the page. If you are using tables for making your layout and not for showing any tabular data, then you are in wrong path. Read http://www.hotdesign.com/seybold/