RSS
20 May 2009

Best Practices for your Style Sheets

Author: Chris | Filed under: Design

Today I was reading this article over at the webdesigner depot called 10 Best CSS Practices to Improve Your Code. The writer does a really good job of listing the important tips for writing good clean CSS code.

Here’s the list in short:

  1. Stay Organized
  2. Title, Date and Sign
  3. Keep a Template Library
  4. Use Useful Naming Conventions
  5. Use Hyphens Instead of Underscores
  6. Don’t Repeat Yourself
  7. Optimize for Lightweight Style Sheets
  8. Write Your Base for Gecko, Then Tweak for Webkit and IE
  9. Validate
  10. Keep a tidy house

Leave a Reply

You must be logged in to post a comment.