what im trying to do is simple, a table that occupies the entire screen, header has to touch the top edge of the screen whilst the footer has to touch the very bottom. Content cell should auto size and stretch enough to fill the remaining space, but i cant get it to do it, the footer cell does it instead. How can i work out this problem? i tried by using height at 100% for the content row but it wont work in explorer. Any hints please?
Well, thanks for the advice but its a little too late for that since all the pages of my site have tables. Does it mean i cant achieve what im trying as long as im using tables?
Actually, i have already come across that site before coming here. You can see i used their advice in my code, but vertical alignment is not what im trying to achieve, but getting a particular cell to be the one that stretches and fills the remaining space, in this case bing row3 but what i get is footer cell being the one that stretches, which is odd considering im giving it a defined height (20px). Im sure there is a way around this, but i have tried many things and none of them work.
Sadly, from what I've found online, it seems that tables don't work that way, 'out of the box'. I've stumbled upon a solution that uses jQuery - so apparently there's need for an external script to get it working (which supports the notion that there's no such option in coding).
I believe that if possible, you should invest time in a non-tabular layout - it would be easier to maintain both now and in the future.
Thanks again, but that code is for the entire table, not for a single cell which is my goal. I already managed to have the table occupy the 100% of the height of the page, the problem is the proportions of the cells. Rows 1, 2 and 4 are supposed to have a defined height, while row 3 should auto size accordingly depending on the page size, but row 3 does it instead.
I would strongly use div tags like LiveCity said...they are WAYY easier to use then tables I only use tables for forms...also you could probably remake the whole site in div's before you found that problem with the cell you are talking about tables and % do not play very nice together Ive heard of a hack to help fix this but I dont think it worked in IE
I would strongly use div tags like LiveCity said...they are WAYY easier to use then tables I only use tables for forms...also you could probably remake the whole site in div's before you found that problem with the cell you are talking about tables and % do not play very nice together Ive heard of a hack to help fix this but I dont think it worked in IE
Bookmarks