Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2005
    Location
    USA
    Posts
    1,634
    Tokens
    0

    Latest Awards:

    Default [CSS] Allowing my footer to be aligned to the bottom.

    #footer{
    width: 1024px;
    margin: auto;
    overflow: visible;
    height: 262px;
    background: url(images/sg_01.gif) no-repeat bottom;
    position: relative;
    bottom: 0px;
    left: 0px;
    clear: both;
    }

    Honest, I couldn't figure it out and I just started adding on and taking off.
    What I want is my footer to be at the bottom of the page, no gaps.

    All I really want is my image at the bottom of the page, it could be from the background or div....

    I tried position: relative; but it made the content stop and took over the portion of the page.

    If you have any variations of this let me know. I guess I need to broaden my skills, because I am clueless.


  2. #2
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    remove position, and bottom.
    Add: margin-bottom: 0px;

  3. #3
    Join Date
    Feb 2005
    Location
    USA
    Posts
    1,634
    Tokens
    0

    Latest Awards:

    Default

    Thanks for the reply, I think I had it like this before.

    I was trying to get it to be able to actually touch the bottom of the page. So for smaller pages it wouldn't move up but just stay the same.

    Thank you for the reply.


  4. #4
    Join Date
    Feb 2005
    Location
    USA
    Posts
    1,634
    Tokens
    0

    Latest Awards:

    Default

    I meant to clean up the css, that first post me playing to find a solution in css.

    #footer{
    width: 100%;
    height: 262px;
    background: url(images/sg_01.gif) no-repeat;
    margin-bottom: 0px;
    }


  5. #5

    Default

    You might be looking for this - http://ryanfait.com/sticky-footer/

  6. #6
    Join Date
    Feb 2005
    Location
    USA
    Posts
    1,634
    Tokens
    0

    Latest Awards:

    Default

    Exactly what I was looking for, thanks!


  7. #7
    Join Date
    May 2008
    Posts
    1,160
    Tokens
    11

    Latest Awards:

    Default

    To keep something on the bottom don't you put:

    position: absolute;
    bottom: 0px;


    ???
    Previously a Habbo fanatic, web designer/developer, fansite owner, & trusted member of the community.

  8. #8
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    No Dylan.
    You use "margin-bottom: 0px;" and "clear: both;" & "overflow: hidden;"

    But Ryan Fait says:
    * {
    margin: 0;
    }
    html, body {
    height: 100%;
    }
    .wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -142px; /* the bottom margin is the negative value of the footer's height */
    }
    .footer, .push {
    height: 142px; /* .push must be the same height as .footer */
    }

    /*

    Sticky Footer by Ryan Fait
    http://ryanfait.com/

    */

Posting Permissions

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