I have a footer which needs to be positioned at the bottom of the browser’s window, or at the bottom of the displayed page, whichever is lower.
In other words, if the page’s contents don’t take up the entire window, then the footer should be at the bottom of the window. If there is a lot of content, and the page has to be scrolled, then the footer should be at the bottom of the page.
Problem: I have no idea how to do this. For instance, how do you get the footer’s current location?
Please help me, I’m stumped. Thanks in advance.
-Jeff
The footer code:
[CODE]<table id=”CGfooter” cellpadding=”0″ cellspacing=”0″ border=”0″ width=”100%” style=”border:0 solid red”>
<tr><td valign=”top” ><img src=”spacer.gif?OpenImageResource” height=”1″ width=”14″ border=”0″ /></td>
<td valign=”top” colspan=”2″ bgcolor=”#cccccc”><img src=”spacer.gif?OpenImageResource” height=”1″ width=”1″ border=”0″ /></td>
<td valign=”top” ><img src=”spacer.gif?OpenImageResource” height=”1″ width=”14″ border=”0″ /></td></tr>
<tr><td valign=”top” colspan=”3″><img src=”spacer.gif?OpenImageResource” height=”5″ width=”1″ border=”0″ /></td></tr>
<tr><td valign=”top”> </td>
<td valign=”top” align=”left” class=”menuheadfootleft”><font face=”arial, helvetica” size=”1″><a href=”http://www.citigroup.com/”><img src=”f_cglogo.gif?OpenImageResource” alt=”citigroup” border=”0″ /></a><br />
<a href=”http://www.citigroup.com”>http://www.citigroup.com</a>
</td>
<td valign=”top” align=”right” class=”menuheadfootright”><font face=”arial, helvetica” size=”1″><a href=”http://www.citigroup.com/citigroup/privacy/terms.htm”>Terms, conditions, caveats, and small print</a><br />Copyright © ‘ + copyrightdate + ‘ Citigroup</font></td></tr>
<tr><td valign=”top”><img src=”spacer.gif?OpenImageResource” height=”1″ width=”10″ border=”0″ /></td><td valign=”top” colspan=”2″ class=”fineleft”>This site is not intended for distribution to, or use by, any person or entity in any jurisdiction<br />or country where such distribution or use would be contrary to local law or regulation.</td></tr></table>