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 5 of 5
  1. #1
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default How do I put tables to the top?

    Hey,
    I'm currently trying to code in tables (fun ).
    Anyways, I want to put a table to the top.
    I don't know how.
    I've tried adding divs to the tables, and to:
    margin-top: 0px;
    But it doesn't seem to work.

    Anyone know how?

  2. #2
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    If you mean you want the table to be right at the top of the page, with no margin use this-

    HTML Code:
    <style type="text/css">
    body {
       margin-top:0px;
    }
    </style>
    Lets set the stage on fire, and hollywood will be jealous.

  3. #3
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Code:
    <style type="text/css">
    body
    {
    margin: 0;
    }
    </style>

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

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    Code:
    <style type="text/css">
    body
    {
    margin: 0;
    }
    </style>
    Wrong code
    It has to be 0px?

    Anyways, i'm coding the layout in DIV's instead

  5. #5
    Join Date
    Jul 2008
    Posts
    5,289
    Tokens
    0

    Latest Awards:

    Default

    yes and margin: 0px would set it to left, right, top and bottom

    for only top use

    Code:
    body { margin-top: 0px; }

Posting Permissions

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