Is your CSS maintainable?

24 10 2007

The layout design will be amended because of the customer suggestion.
Having maintainable CSS will be a must in order to help you a lot in rewriting it.

Here is some suggestion about writing maintainable CSS :

  1. Breaking up your CSS into the smallest possible coherent concept
  2. organize files into a set of directories that allow you to easily figure out the purpose of each file
  3. Use IDs sparingly
  4. Avoid using the same classname for different purposes
  5. always use the same classname for similar purposes
  6. always use intention revealing classnames
  7. always put your classname on the outer most element on which it makes sense

Reference from:
http://css-discuss.incutio.com/?page=MaintainableCss

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: