...

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



steviepcontrol
03-21-2005, 09: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.

-Steven

mcdougals4all
03-21-2005, 09: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.

steviepcontrol
03-21-2005, 10: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!

-Steven

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum