Keep Your CSS Simple
Oftentimes, when we as web designers are working with CSS, we have a look in mind and we are looking for ways to accomplish that work. It can be easy to load up a page with a large number of different <div> tags in order to achieve the "perfect" layout. It can also be easy to find or purchase a design and then apply it to your site with little need to know exactly how it is achieving that design.
However, when we take these approaches we can often run into problems if we want to make simple style changes. Therefore, we want to follow these four rules to keep our CSS manageable throughout our sites:
- Use CSS Conventions - Use ids and classes appropriately so the elements can be easily identified and managed.
- Build From A Standard Layout - Try starting from a base template (i.e. 2-column fluid, 3-column fixed), and build from there. This will help with both cross-browser compatibility and ease of CSS changes (because many distinct looks can be achieved from these basic layouts).
- Organize Your CSS Files - Try to keep your CSS files organized, with related items close together. For example, try keeping ids and classes separated, and group sub-elements with their base element.
- Separate Your CSS From Your Pages - If you don't already, keep them apart. They're not like peanut butter and chocolate in your Reese's Peanut Butter Cups. Keeping your CSS in a separate file will reduce the amount of maintenance needed when changes are made.
If you can follow these simple rules, then you will definitely help your cause when it comes to maintaining the look or your website.

