Are there any CSS standards that I should follow while writing my first stylesheet?

前端 未结 17 623
有刺的猬
有刺的猬 2020-12-13 02:40

I am currently working on my first website. I have no idea where to start on the CSS page, or if there are any standards that I should be following.

I would appreci

17条回答
  •  感情败类
    2020-12-13 03:28

    If you use a reset script - it'll iron out some of the quirks between different browsers. Doing so has made my life easier.

    I've seen some people swear by simply using

    * { padding: 0; margin: 0; }
    

    But you can also use more thorough implementations - like the one in the YUI library... http://developer.yahoo.com/yui/reset/

    When it comes to testing your site renders - browsershots.org is pretty useful.

    The webdev firefox plugin is brilliant - CTRL+SHIFT+E allows you to edit css, and see changes on the fly. If you CTRL+F, you can also hover yr mouse over an element to find out what it is.

    To add to the sites other people have mentioned - I've found http://css-discuss.incutio.com useful. Freenode #css is handy too.

提交回复
热议问题