What's the best way to convert table layout to CSS layout?

后端 未结 8 1997
故里飘歌
故里飘歌 2020-12-30 11:58

I\'m about to begin working on a web page with a complex table-based layout (coded years ago).

One of the things I\'d like to do is convert the layout to a proper CS

8条回答
  •  没有蜡笔的小新
    2020-12-30 12:32

    Before you start, ensure you are using a CSS reset. Eric Meyer and Yahoo YUI are both excellent. This will help to make all your browsers look the same.

    Also, install the HTML validator too. This will ensure your HTML is looking good and ready for adding the CSS.

    Then grab a copy of Firebug and install it in firefox. This is excellent for seeing which CSS rules are doing what. You can disable individual rules by clicking s cross by each rule.

    Now, visit some web pages which validate correctly and see what rules they have used in their style sheets.

    Web sites to try are www.alistapart.com, CSS Zen Garden, SimpleBits etc.

提交回复
热议问题