View Full Version : Help: CSS and Javascript to Position Footer

03-21-2005, 10:35 PM
I'm using the code given in this article http://www.alistapart.com/d/footers/ Using javascript and css to position my footer. (More specifically example 4 http://www.alistapart.com/d/footers/footer_dom1.html)

Here is my page: http://stevenrios.com/formit/site/footertest.htm

All css is within the html doc. Before I had the footer div within the content div but i changed that and it is doing the same thing.

The problem is the footer won't position itself when the window loads, when I resize the window it does, yet goes too far beyond the browswer window. I could live with the resize issue, i just need it to do the same thing when the page loads.

It is doing the same thing in every browser I've tried: Windows IE, Windows Firefox, Mac IE, Safari and Mac Firefox.

Thanks in advance to anyone willing to help.


03-21-2005, 10:59 PM
The multiple onload events are likely conflicting.

To test, remove the body onload event handler and see if the footer script works correctly.

Have a read here for a workaround, http://www.griffininteractive.net/archives/scripting/000019.html.

03-21-2005, 11:10 PM
mcdougals4all. Thank you SO much.

I knew it had to be something that simple. Thanks for taking the time to look at my problem and thanks a billion for the fix. It works, it actually works!


03-21-2005, 11:14 PM
No problem. Glad I could help. :thumbsup: