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!


Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default {Guide} DIVs and CSS basics!

    Hey there!
    I'm bored, so I've decided to create a guide about the DIV and CSS basics.
    Hope this helps some of you guys!

    Meti
    -----------------------------------------------------------------
    Basic DIV and CSS:
    A basic DIV code will look like this:
    HTML Code:
    <div id="CSSNAME"></div>
    And a basic CSS code will look like this:
    HTML Code:
    #CSSNAME {
    }
    -----------------------------------------------------------------
    Some basic CSS codes:
    margin:- Basicly marginals between the spaces.
    The margin codes could look like this:
    HTML Code:
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin: auto;
    Margin: auto; centers the layout/image/div

    But you could add:
    HTML Code:
    margin: 0px;
    To the body tag, and then it will be easier for you to do the full screen sizes


    Padding:- Positioning the text
    Could look like this:
    HTML Code:
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    background-image: url(folder/picture.png); - This is the background of the image.

    width: 0px;- This is the width of the image/div
    height: 0px;- This is the height of the image/div

    float:- Makes your image/div float
    Could look like this:
    HTML Code:
    float: left;
    float: right;
    I personally never use float:right;

    color:- Change the font color
    Could look like this:
    HTML Code:
    color: #FFFFFF;
    - makes your text white

    -----------------------------------------------------------------
    I guess that's all I can get in my head atm
    Please tell me if there are some thing I've forgotten.

    You are not allowed to post this on other forums without permission from Meti Mulaj. Copyright © Meti Mulaj 2008+

  2. #2
    Join Date
    Oct 2008
    Location
    In a box, US
    Posts
    306
    Tokens
    0

    Default

    Great tut, even though I dont need it! +REP -- shouldnt this be in the tut section?

  3. #3
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    Thanks.
    It has to be moved there by the Forum Staff

  4. #4
    Join Date
    Oct 2008
    Posts
    43
    Tokens
    0

    Default

    Hey,

    The trick with float:right; is that the content sitting to its left actually has to appear after the floated div in the html
    Can be a bit confusing as it goes against the normal left-to-right mentality.

    CS-dude

  5. #5
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    You don't explain things very well i.e;
    Basicly marginals between the spaces.
    Like, what the hell is that meant to mean?
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  6. #6
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    pretty good tut, some was unclear, but ik it is hard to explain, i've tried.

    i geuss you deserve a +rep
    +.net - omg it's coming o_o

  7. #7
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by CS-dude View Post
    Hey,

    The trick with float:right; is that the content sitting to its left actually has to appear after the floated div in the html
    Can be a bit confusing as it goes against the normal left-to-right mentality.

    CS-dude
    Ok. Didn't understand anything about that

    Quote Originally Posted by Aflux View Post
    You don't explain things very well i.e;

    Like, what the hell is that meant to mean?
    Marginals between the spaces?

    Quote Originally Posted by HabbDance View Post
    pretty good tut, some was unclear, but ik it is hard to explain, i've tried.

    i geuss you deserve a +rep
    Thanks =)

  8. #8
    Join Date
    Mar 2008
    Posts
    1,055
    Tokens
    0
    Habbo
    Decalan

    Latest Awards:

    Default

    It's alright.
    It's kind of scattered though. Like you've sat and just typed the random facts about CSS and divs that came into your head.
    Try next time to make a tutorial about actually doing something?
    Maybe explain what a div is and what it does etc.
    Fair attempt, I'll give you some of my 1 REP power.

  9. #9
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    That is IE only if you are going to use background images.
    Lets set the stage on fire, and hollywood will be jealous.

  10. #10
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    well, since most of the browsers in the world have IE, it'd better to code in for IE

Page 1 of 3 123 LastLast

Posting Permissions

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