I have this footer that I would like to be on the bottom of each page, using CSS2...
The problem is, when there is almost no content on the page, I want the footer to be at the bottom of the screen, not right below the last thing on the page.
In old HTML, this would translate to:
<table height="100%">
<tr>
<td height="20">This is 20 pixels high</td>
</tr>
<tr>
<td>This is variable</td>
</tr>
<tr>
<td height="30">This is a footer and it's 30 pixels high</td>
</tr>
</table>
That way, the page is always filled completely (vertically), wheter or not there is enough content to normally fill it.
Question
kag
I have this footer that I would like to be on the bottom of each page, using CSS2...
The problem is, when there is almost no content on the page, I want the footer to be at the bottom of the screen, not right below the last thing on the page.
In old HTML, this would translate to:
That way, the page is always filled completely (vertically), wheter or not there is enough content to normally fill it.
This is what I mean...
This is correct
Here you shouldn't have to scroll to see the footer
Link to comment
Share on other sites
6 answers to this question
Recommended Posts