CSS: For Your Sanity

I can’t remember where I read this, but alphabetizing your CSS attribute lists is a great habit to get into.

I haven’t quite gotten to the point where I’m abstracting CSS as much as some (one file for color, one for positioning, etc) but I’m starting to go a little batty with all of the style I do have to deal with… one way to help is to alphabetize the CSS attributes so you don’t have to look around as much to find where your margin attribute may be hiding.

Another For Your Sanity Tip: Initial CSS which takes care of a lot of the “default” styling that happens to elements.


Comments are closed.

%d bloggers like this: