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

Thread: Aligning DIVS?

  1. #1
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default Aligning DIVS?

    How do i center a div? I have tried adding "align=center" to the end of the div stuff just before the < but it doesn't work.

  2. #2
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    well. At the start of your page just use

    Code:
    <div align="center">
    
    other code here
    
    </div>


    You don't like me
    Chances are I don't like you.

  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Aligning a div tends to be strangly tricky, when you want the code to do it in the div, easiest way tends to be setting the margins to auto, while haveing a fixed width, it tends to do the job.

  4. #4
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by 01101101entor View Post
    Aligning a div tends to be strangly tricky, when you want the code to do it in the div, easiest way tends to be setting the margins to auto, while haveing a fixed width, it tends to do the job.
    Like he says but he forgot to mention thats with Css

    I recommend you to use css, much more precise to postition, like

    Code:
    #divname {
    position: absolute; left: 200px; top: 120px;
    }
    Stuff like that
    Last edited by [Oli]; 21-12-2006 at 06:30 PM.

  5. #5
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    oh awesome +rep to everyone who helped i used this code

    Code:
    #divname {
    
        position: absolute; left: 200px; top: 120px;
    
    }
    also, is there anyway to convert my divs into tables ?

  6. #6
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    Converting them to tables defeats the purpose of DIV's.


    You don't like me
    Chances are I don't like you.

  7. #7
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    tables i reckon look much nicer

  8. #8
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Cannon View Post
    tables i reckon look much nicer
    Not if you style them correctly.

Posting Permissions

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