Forums
This topic is locked
table fill vertically down to footer
Posted 14 Feb 2008 16:03:24
1
has voted
14 Feb 2008 16:03:24 Mark McElhone posted:
Hi,I have a header that fills across the page and a sticky footer at the bottom. I have a table in the center of the page with a background of white. I then set the page background colour so either side of the table will be a colour. The only problem I have is that when the content isnt enough for the white table to go down to the footer the page background colour shows beneath the table. My question is 'how do i get the table to stretch down to the footer when the content isnt enough to push it there?'
All help greatly appreciated, thanks.
Replies
Replied 14 Feb 2008 17:11:19
14 Feb 2008 17:11:19 Alan C replied:
I had a problem with height and a page jumping when scroolbar appeared, the answer (found with search) was
<pre id=code><font face=courier size=2 id=code> html {
height: 100%;
}
body{
min-height: 101%;
/* taken with the height 100% in the html selector this should stop the page jumping when the scrollbar appears or not */
}
</font id=code></pre id=code>
something along those lines might help, maybe on the table height
<pre id=code><font face=courier size=2 id=code> html {
height: 100%;
}
body{
min-height: 101%;
/* taken with the height 100% in the html selector this should stop the page jumping when the scrollbar appears or not */
}
</font id=code></pre id=code>
something along those lines might help, maybe on the table height