G
Goran Topic
Hello. I'm trying to make a footer, and I tried this (our site uses
table-based layout; don't kill me, please):
<table width="100%" height="100%">
<tr><td>
CONTENT HERE...
</td></tr>
<tr height="20px" bgcolor="blue"><td>
This is the footer
</td></tr>
</table>
And this works as I want it to: if the page is longer than the screen,
the footer goes at the bottom of the document; and if it's shorter, it
goes on the bottom of the screen. However, if I put the DOCTYPE
declaration, it does not work any more:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Can someone help me get this right? I should have the DOCTYPE, but I've
no idea how to get the same functionality with it.
Thanks,
Goran
table-based layout; don't kill me, please):
<table width="100%" height="100%">
<tr><td>
CONTENT HERE...
</td></tr>
<tr height="20px" bgcolor="blue"><td>
This is the footer
</td></tr>
</table>
And this works as I want it to: if the page is longer than the screen,
the footer goes at the bottom of the document; and if it's shorter, it
goes on the bottom of the screen. However, if I put the DOCTYPE
declaration, it does not work any more:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Can someone help me get this right? I should have the DOCTYPE, but I've
no idea how to get the same functionality with it.
Thanks,
Goran