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

Thread: HTML Help

  1. #1
    Join Date
    Jan 2011
    Location
    N.London
    Posts
    3,759
    Tokens
    670
    Habbo
    Lamz

    Latest Awards:

    Default HTML Help

    Hey, two things...

    could some1 tell me the html code to center something & also...

    could some1 please give me a html code to get my playlist to play automatically like auto start...

    please

    Instagram l Twitter l Soundcloud
    Retired HxL DJ (Ice)

  2. #2
    Join Date
    Apr 2005
    Posts
    12,044
    Tokens
    8,448

    Latest Awards:

    Default

    <center></center> or <p align=center></p> usually work dunno bout the second one!

  3. #3
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    To center something, use the style attribute:

    PHP Code:
    <label style="text-align: center"</label
    For audio, use:

    PHP Code:
    <audio controls='controls' autoplay='autoplay'>
    <
    source src='SRC' type="audio/ogg" /> <!-- Extension is .ogg -->
    <
    audio src='SRC' type="audio/mp3" /> <!-- Extension is .mp3 -->
    A HTML5 compliant browser is required to listen to this music.
    </
    audio
    The document type (The first piece of markup):

    PHP Code:
    <!doctype html
    Edit: To above: The Center tag is not supported as of HTML5.


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





  4. #4
    Join Date
    Dec 2007
    Location
    Manchester
    Posts
    2,236
    Tokens
    118
    Habbo
    hamheyelliot

    Latest Awards:

    Default

    Take your div, let's say it's <div id="container">code/content</div>

    Head to your stylesheet and center it with: #container {margin: 0 auto}

    The 0 tells it to leave it alone vertically (remove it if you want all-round centering) and the auto tells the browser to center it horizontally. Let me know if anything is confusing at all!

Posting Permissions

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