Could someone give me a brief of what/not to do in CSS

Discussion in 'CSS' started by dvncfll01, Jan 11, 2009.

  1. #1
    Hey guy's and girls of DP I was wondering if someone (or more) could tell me what not and what to do In css.

    For example I coded the content of a gaming temp all in CSS with div id's and classes. The main thing I did to position the content boxes in the content section was position:absolute which I figure out you shouldn't do hehe :p but I couldn't figure out another way to put the boxes in the content area without it looking wrong on another person screen, so If could someone or people :) could tell me what I should and other tips in CSS I would very appreciate it, thank you :)

    -Devin
     
    dvncfll01, Jan 11, 2009 IP
  2. webdesigner

    webdesigner Well-Known Member

    Messages:
    489
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #2
    The best way for you to learn would probably be to set divs with borders or background colors and play about with containers, floats, padding, margin etc and see what effect each item has.

    Absolute positioning is not they way to go though...

    If you could give us a brief outline of the structure/layout of your site, I can show you how I would do it which may help.
     
    webdesigner, Jan 12, 2009 IP
  3. dvncfll01

    dvncfll01 Active Member

    Messages:
    608
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    well it is up and you can view it here and as you can see it is pretty much all over the place due to absolute :/
     
    dvncfll01, Jan 12, 2009 IP
  4. bweller

    bweller Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Have you referenced the material at http://www.w3schools.com/css/ ? It's a great reference for learning CSS. This will fill you in on what to do, and what not to do for sure!
     
    bweller, Feb 15, 2009 IP