Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help: CSS and Javascript to Position Footer

    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

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    mile high city
    Posts
    482
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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/ar...ng/000019.html.
    Computer, kill Flanders... Did I hear my name? My ears are burning...
    Good start. Now finish the job.

  • #3
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Regular Coder
    Join Date
    Jul 2004
    Location
    mile high city
    Posts
    482
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No problem. Glad I could help.
    Computer, kill Flanders... Did I hear my name? My ears are burning...
    Good start. Now finish the job.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •