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:
- Stay Organized
- Title, Date and Sign
- Keep a Template Library
- Use Useful Naming Conventions
- Use Hyphens Instead of Underscores
- Don’t Repeat Yourself
- Optimize for Lightweight Style Sheets
- Write Your Base for Gecko, Then Tweak for Webkit and IE
- Validate
- Keep a tidy house
Leave a Reply
You must be logged in to post a comment.