good css books.

Discussion in 'CSS' started by mytvtalk, May 1, 2008.

  1. #1
    i have just built my first site using HTML and CSS and its been quite fun to be honest, but i can do alot better work graphically but im still not the best with css. my site is www.mytvtalk.com if anyones interested. i have a better design but like i said im not sure how to use the css, so i was wondering is there any really good css books out there that would help me. thanks in advance
     
    mytvtalk, May 1, 2008 IP
  2. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #2
    not bad for your first site. A few comments:

    • make your content come first, and then the sidebars
    • don't use more than 2 of these things (            )
    • avoid using <div class="clear"> or anything of the like
    • i don't think i saw any, but also avoid using <br> or <br />

    As for a good book, just go to your local library and look at some. Any "for dummies" book will probably do you some good, but I found that it's best to look for help online.

    http://www.w3schools.com/css

    is a good site that is worth checking out. It goes pretty much through the basics.

    Regards,
    Nick
     
    Hades, May 1, 2008 IP
  3. mytvtalk

    mytvtalk Active Member

    Messages:
    933
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    thanks for the quick reply, can you explain if you dont mind why not to use the div class="clear" this was the only way how i knew how to get the footer under the content. thanks for the adive il have a good look now.
     
    mytvtalk, May 1, 2008 IP
  4. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #4
    Well, the thing with css and xhtml is that you want to keep them seperate. CSS is your styling. HTML is only your html. When you add a <div class="clear"></div> in there, it's an extra box that styles inside of the html. It's like using inline styles. You don't want to do that. The way to clear it would be:

    #footer {
    clear:both;
    }

    Since you already have a footer id, you can just add the clear inside of it.

    Regards,
    Nick
     
    Hades, May 1, 2008 IP
  5. mytvtalk

    mytvtalk Active Member

    Messages:
    933
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #5
    ah rit ei get you now thanks for explaining il change it right away!
     
    mytvtalk, May 2, 2008 IP
  6. ShamelessTraffic

    ShamelessTraffic Peon

    Messages:
    106
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I read the book 'Beginning CSS Web Development From Novice to Professional' published by Apress not too long ago. I would definitely recommend it.
     
    ShamelessTraffic, May 2, 2008 IP
  7. mytvtalk

    mytvtalk Active Member

    Messages:
    933
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #7
    thanks. il check it out.
     
    mytvtalk, May 2, 2008 IP