I thought I leave a little checklist, which you could use when creating websites. Although some stuff might be obvious for some people, I see these things omitted on a daily basis when helping out others with their css and html.
Note though this list is not not limited to the stuff below, but it will definitely save you quite some time. Use the following in order.
- Always use a valid doctype! It should be on the first line if you view your source code in the browser.
- Place a reset.css above your own style! A reset.css is vital to eliminate browser differences.
- Use conditional comments to target versions of IE! (so don't use css hacks)
- Don't use inline style! (it's redundant, slower, chaotic and easier to make mistakes)
- Don't use tables for anything other than displaying data in an orderly way.
- Don't use a clearfix-div if you can use a overflow:hidden;
Cheers!
Cssfreakie
No comments:
Post a Comment