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!


Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    What about;
    Code:
    <style>
    html{ 
    height: 100%; 
    border: 0; 
    padding: 0; 
    margin: 0; 
    } 
    body{ 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    border: 0; 
    } 
    #spacer{ 
    display: block; 
    height: 95%; 
    float: left; 
    width: 2px; /* 1px would be enough this is for display only */ 
    font-size: 1px; /* to make sure width is not overridden */ 
    padding: 0; 
    margin: 0; 
    background-color: red; /* visual effect only */ 
    } 
    #contentwrap{ 
    display: block; 
    width: 99%; /* to suit but leave room for spacer */ 
    text-align: center; 
    padding: 0; 
    margin: 0; 
    } 
    #content{ 
    margin: 0; 
    padding: 0; 
    border: 1px solid blue; 
    } 
    #footer{ 
    clear: both; 
    height: 5%; 
    border-top: 1px solid green; 
    padding: 0; 
    margin: 0; 
    } 
    </style>
    And then;
    PHP Code:
    <div id="spacer"></div
    <
    div id="contentwrap"
    <
    div id="content"
    <
    p>"insert favourite foo text"</p
    </
    div><!-- content --> 
    </
    div><!-- contentwrap --> 
    <
    div id="footer">footer</div
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  2. #12
    Join Date
    Mar 2008
    Posts
    779
    Tokens
    0

    Default

    That's going to make all content forced downwards isn't it...

    In your footer's CSS put;

    Code:
    position: absolute;
    bottom: 0;
    However that will make it float above the content and stay in view at all times I'm sure...

    http://lists.evolt.org/archive/Week-...01/108597.html - Read that article, kind of explains the problem with what you're trying to do.
    Last edited by Klydo; 12-07-2008 at 11:20 AM.
    Youmeo - Your Social Reunion
    You can follow development at Twitter & visually at Flickr!

  3. #13
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Klydo View Post
    That's going to make all content forced downwards isn't it...

    In your footer's CSS put;

    Code:
    position: absolute;
    bottom: 0;
    However that will make it float above the content and stay in view at all times I'm sure...
    Ah, my code is wrong and I don't know a fix, sorry.

  4. #14
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    Thanks Klydo, your method worked.

    Also, thanks to Independant for helping me understand some other things.
    +REP to both of you.

    Mod can now close this thread =]
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  5. #15
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Sorry! We can't close threads upon request You have to purchase VIP for that feature

  6. #16
    Join Date
    Jul 2008
    Posts
    16
    Tokens
    0

    Default

    Quote Originally Posted by Klydo View Post
    It's possible but not cross browser and cross screen resolution friendly. I would tell you how to do it but I've always tried to aviod it so used my solution instead.
    While your method of position absolute is good, using a position absolute could have a bad effect on the rest of the code, theres a way using position relative which is quite good, or just using a sticky footer, which uses math to work it out :

    Code:
    1. * {
    2. margin: 0;
    3. }
    4. html, body {
    5. height: 100%;
    6. }
    7. .wrapper {
    8. min-height: 100%;
    9. height: auto !important;
    10. height: 100%;
    11. margin: 0 auto -4em;
    12. }
    13. .footer, .push {
    14. height: 4em;
    15. }
    Code:
    1. <html>
    2. <head>
    3. <link rel="stylesheet" href="layout.css" ... />
    4. </head>
    5. <body>
    6. <div class="wrapper">
    7. <p>Your website content here.</p>
    8. <div class="push"></div>
    9. </div>
    10. <div class="footer">
    11. <p>Copyright (c) 2008</p>
    12. </div>
    13. </body>
    14. </html>
    Source: http://ryanfait.com/sticky-footer/

    Or there is the other option of using CSS Grids

Page 2 of 2 FirstFirst 12

Posting Permissions

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