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
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default how do I centre in css

    How do I centre a whole container?

    Quick please.

    All helpful comments get +rep

    Thread moved from design and development by --ss-- (Forum Super Moderator): Please post in the correct section .
    Last edited by --ss--; 06-03-2008 at 06:59 PM.
    Chippiewill.


  2. #2
    Join Date
    Aug 2006
    Posts
    180
    Tokens
    0

    Default

    #container {
    width: #;
    margin-right: auto;
    margin-left: auto;
    }

  3. #3
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    ty +rep
    Chippiewill.


  4. #4
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Correct # being your desired widthin percent pixels, and a few others.

    eg 800px or 66%
    How could this hapen to meeeeeeeeeeeeeee?lol.

  5. #5
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    I use:

    HTML Code:
    #div {
    margin: 0 auto;
    }
    It is essentially the same, but less code


Posting Permissions

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