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 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Top + Bottom?

  1. #1
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default Top + Bottom?

    Well, I'm coding a layout for somebody. It's basically done, except for one thing.

    I want it so the content box stays attached to the bottom and top. I tried bottom: 0px; but that didn't work, it just moved the content down to the bottom.

    Here is the CSS for it, if anybody could edit it, it'd mean a lot. +rep too.
    HTML Code:
    #content {
    background-image: url(images/content.gif);
    width: 630px;
    margin-left: 20%;
    margin-right: 20%;
    }

  2. #2
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Erm.. i think you need,

    Code:
    body {
    margin-top: 0px;
    margin-bottom: 0px;
    }
    If you put it in with the css for content box it will just move it, it has to be the page margin not the Div's margins
    Looking for a good desiner to design a social networking template.

    PM me.

  3. #3
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    No, that doesn't work.

    I want it so the content box, no matter how little content, the bottom sticks to the bottom of the page, and the top sticks to the top of the page.

  4. #4
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by loserWILL View Post
    No, that doesn't work.

    I want it so the content box, no matter how little content, the bottom sticks to the bottom of the page, and the top sticks to the top of the page.
    Code:
    #content {
    background-image: url(images/content.gif);
    width: 630px;
    height: 100%;
    margin-left: 20%;
    margin-right: 20%;
    }
    ??
    Looking for a good desiner to design a social networking template.

    PM me.

  5. #5
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Quote Originally Posted by Ini View Post
    Code:
    #content {
    background-image: url(images/content.gif);
    width: 630px;
    height: 100%;
    margin-left: 20%;
    margin-right: 20%;
    }
    ??
    That's my original code..?

  6. #6
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    margin: 0 0 0 0px;
    height: 100%

    bing bong bang.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  7. #7
    Join Date
    Nov 2006
    Location
    Cheshire.
    Posts
    730
    Tokens
    250

    Default

    Quote Originally Posted by loserWILL View Post
    That's my original code..?
    He had, "height: 100%;".


    Give us an add like!

  8. #8
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by loserWILL View Post
    That's my original code..?
    I added height in save you writing it lol

    Should of said lol
    Looking for a good desiner to design a social networking template.

    PM me.

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

    Latest Awards:

    Default

    My method doesn't work in IE as it's rubbish.

    If you want it, I'll post it. *Text Removed*

    Edited by opensourcehost (Forum Super Moderator): Please do not accuse/name others of ripping.
    Last edited by Mr.OSH; 16-12-2007 at 09:22 PM.

  10. #10
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Quote Originally Posted by Invent View Post
    My method doesn't work in IE as it's rubbish.

    If you want it, I'll post it.
    If you could post it, that'd be great.

    Also, the content box is under a header, and when I put height: 100%; it makes the content stretch up past the header.

Page 1 of 2 12 LastLast

Posting Permissions

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