CSS Best practice

  1. Use classes and IDs carefully and sparingly.
  2. Use multiple style sheets
  3. Use <div> to create context
  4. Use <span> for inline style changes
  5. Use shorthand properties
  6. Use sprites for small images
  7. Keep your code organized
  8. Keep a library of css templates
  9. Declare your XHTML pages with a DOCTYPE of xhtml1
  10. Use w3c's validators
  11. Use consistent naming conventions
  12. Use plenty of comments
blog comments powered by Disqus