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 3 of 3

Thread: Some things

  1. #1
    Join Date
    Jan 1970
    Posts
    0
    Tokens
    0

    Latest Awards:

    Default Some things

    How do you:

    Center Text in xHTML

    Center Text in CSS

    Make backgrounded tables in CSS

    And is
    <div style="align: center;"> valid?

    Thanks,
    Boonzeet

  2. #2
    Join Date
    Aug 2005
    Location
    Newcastle
    Posts
    1,417
    Tokens
    0

    Latest Awards:

    Default

    Code:
    #one {
    margin: auto;
    }
    #two {
    text-align: center;
    }
    
    <div id="one">Div is centred!</div>
    <div id="two">Text is centred!</div>
    "one" centers the DIV, "two" centers the text. It's cleaner to not use " style="" " but I think it still is valid, I dont think it will be with a strict doctype. What do you mean by "backgrounded tables"?
    Last edited by craigg.; 12-12-2007 at 06:34 PM.



  3. #3
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default



    Google helps.

Posting Permissions

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