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 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default Divs? [Lolatme] [+Rep]

    I have completely forgotten how to use these, haven't used them in such a long time, can anyone link me to a beginner's tutorial, + Rep if you can :eusa_wall

    drink up this bottle of yeah
    and P A I N T your body on me


  2. #2
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    go to www.w3schools.com

    Its legendary ;P

  3. #3
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    Ooo, I remember now, that's pretty simple stuff :>!

    I've been told you can also place things like images on a page in places that you can't normally? o_O

    drink up this bottle of yeah
    and P A I N T your body on me


  4. #4
    Join Date
    Sep 2005
    Posts
    150
    Tokens
    0

    Default

    Heres my uber skill explaining in a few minutes.

    Basically use them to add style to a certain section or all of your layout for example:

    HTML Code:
    <div id="header"></div>
    <div class="content">
    You have defined an ID and a Class, you use an ID when you want that part to be used just once and a class can be used as many times as you want, so use it for paragraghs and H2 etc.

    Now we need to add style so use the # and . for ID and Class.

    HTML Code:
    #header {
        width: 100px;
        height: 150px;
    }
     
    .content {
        background-color: black;
        width: 100px;
        color: white;
    }
    Although you wouldn't use a class for content I am using it as an example. Hope this helps, i'm not much of an explainer, but if you read W3.org and W3schools.com you will have a better understanding.

    You could use a Position:absolute to place images but it can have nasty incompatibility issues if not done correctly and I personally don't use it.
    Last edited by DuHast; 28-10-2006 at 03:11 PM.

  5. #5
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Quote Originally Posted by DuHast View Post
    Heres my uber skill explaining in a few minutes.

    Basically use them to add style to a certain section or all of your layout for example:

    HTML Code:
    <div id="header"></div>
    <div class="content">
    You have defined an ID and a Class, you use an ID when you want that part to be used just once and a class can be used as many times as you want, so use it for paragraghs and H2 etc.

    Now we need to add style so use the # and . for ID and Class.

    HTML Code:
    #header {
        width: 100px;
        height: 150px;
    }
     
    .content {
        background-color: black;
        width: 100px;
        color: white;
    }
    Although you wouldn't use a class for content I am using it as an example. Hope this helps, i'm not much of an explainer, but if you read W3.org and W3schools.com you will have a better understanding.

    You could use a Position:absolute to place images but it can have nasty incompatibility issues if not done correctly and I personally don't use it.
    But that's using CSS and HTML. For just HTML it should be..
    HTML Code:
    <div style="width:100px; height:150px;"></div>
    <div style="background-color:#000000; width:100px; color: #FFFFFF;"></div>
    Of course, that's using CSS names for all the stuff, but you don't need an external file. (Or any style info in the header)

    And a word of advice, always have a background-color with color and vice-versa, to keep the CSS valid. If you don't want a new color (bg or text), just use color: inherit;
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

Posting Permissions

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