Finally got around to making a script to clean up my poor CSS files; enter CSS Clean.
So why would I need this? Because a lot of my CSS files are built over a long period of time… with thoughts and experiments randomly cut and pasted. After a while, the CSS gets hard to read because of the lack of organization.
So, instead of having something like this:
/* Before CSS Clean */
#selector {
width: 150px;
border: 1px solid #000;
color: #070;
}
I can finally have something like this:
/* After CSS Clean */
#selector {
border: 1px solid #000;
color: #070;
width: 150px;
}
All nice and alphabetized-like… and indented.