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 22
  1. #1
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default [TUT] Introduction to CSS

    OK, so if you know basic to advanced (x)HTML then you should be ready to learn CSS which is very nifty when you want to style something.

    CSS stands for Cascading Stylesheets and it basically is used for styling things such as tables, text's, div's and layers.

    OK, so to make your first CSS document open up Notepad [or any other text/html editor] and save the empty document as "style.css".

    Right, to start any CSS code we need to call it something and open it with a "{"

    Type this;
    Code:
    body {
    }
    Now, the body element is used for the whole document and contains such things as backgrounds, alignments and font colour's.

    Things you can add are;
    Code:
    body {
    background-color: #000000;
    color: #FFFFFF;
    }
    The background-color element is basically what the background colour of the page will be and the color element is the font colour that will be used on the page. After each element, you need a semi colon ";" and start a new line once finished that element.

    I'm not going to go into too much detail about all the element's as there really are thousands so I'll just move swiftly on.

    If you want to style a div and the div id is "mainbox" then you would have to use the id tag and the name, i.e;
    Code:
    #mainbox {
    background-color: #000000;
    color: #FFFFFF;
     }
    Notice the # infront of mainbox? This means that it's the ID of the div and can only be used once whereas classes can be used numerous times and these shall look like this;
    Code:
    .mainbox {
     background-color: #000000;
     color: #FFFFFF;
      }
    That's basically it for a start, you've learnt the basics.

    I'm not very good at writing tutorials so I'll probably brush up on it later on in life.

    =]
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  2. #2
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    nice +REP
    EDTALKING


  3. #3
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Good tut, you could of wrote it a few days ago though when i need help lol instead i had to search for ages to find out what i needed to no
    Looking for a good desiner to design a social networking template.

    PM me.

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

    Latest Awards:

    Default

    It's only the very basics and not very well written.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  5. #5
    Join Date
    Dec 2006
    Location
    None of your business!
    Posts
    2,492
    Tokens
    50

    Latest Awards:

    Default

    A nice tutorial for beginners, well done. + rep.

  6. #6
    Join Date
    Nov 2006
    Posts
    1,939
    Tokens
    0

    Latest Awards:

    Default

    nice TUT..

  7. #7
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by opensourcehost View Post
    A nice tutorial for beginners, well done. + rep.
    Exactly me ;]
    Looking for a good desiner to design a social networking template.

    PM me.

  8. #8
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Aflux View Post
    It's only the very basics and not very well written.
    the modisty. ;P
    EDTALKING


  9. #9
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    I reccomend you just use background: so you can use more things such as repeat-x/y, colors, images etc.

  10. #10
    Join Date
    Sep 2004
    Location
    Liverpool
    Posts
    801
    Tokens
    0

    Default

    Nice one.
    "A stupid man's report of what a clever man says can never be accurate, because he unconsciously translates what he hears into something he can understand."

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
  •