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
    Jan 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Flush Bottom Div - What Am I Doing Wrong?

    Hi all, I was wondering if anybody could help me out with this? I've been trying to redesign my art website, and wanted to create a div with navigation that is flush at the bottom of the page when there's not enough content to push it down, yet would still get pushed down when there *is* enough content.

    I found one tutorial that demonstrates that this is possible, and how to do it, here. I'm looking at "Example 2" in particular.

    It appears to be pretty simple, and yet when I tried applying the little bit of code to my own site, it won't function the same. I've got it flush at the bottom of the browser...but it wants to stay at the bottom of the browser, not the bottom of the actual page, resulting in content being covered up by it. The page I've been working on is here.

    Anyone care to take a look, and maybe let me know why it's not working for me?

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,801
    Thanks
    8
    Thanked 131 Times in 129 Posts
    well you don't need to absolutely position the footer and you should move it outside of the container.

    Having your content absolutely positioned is going to case issues as well.

    give this method a shot:

    http://ryanfait.com/sticky-footer/
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Your #content can't be positon:absolute. To center your #content use margin:auto; instead.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow, thanks for the help, that fixed it! Wish I'd come across that link before the other one!


  •  

    Posting Permissions

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