I'm looking for a way to automatically organize (alphabetically, or by any other accepted "standard") all of my CSS properties. I would prefer a method in Dreamweaver, but I'll take anything at this point!
Example:
.div-name {
padding: 5px;
width: 300px;
margin: 10px;
color: #000;
}
would be converted to:
.div-name {
color: #000;
margin: 10px;
padding: 5px;
width: 300px;
}
There was formerly a tool called "CSScomb" (at csscomb.com) to sort and group your CSS. It had plugins for a wide variety of code editors.
Unfortunately, it is no longer online; the domain was for sale, and now it redirects to…something else.
There does appear to be an active repository here: https://github.com/csscomb/csscomb.js/
Try this:
http://www.cleancss.com/
Haven't used it, but it appears to do what you say.
Bob
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With