CSS Tidy is a free software utility that parsers and optimizes CSS code, helping to improve website performance and load times.
Some of the key features of CSSTidy include converting colors like 'black' or rgb(0,0,0) to #000000 or #000 if possible. Some hex-codes may also be replaced by their color names if they're shorter. Duplicate properties such as a{property:x;property:y;} are merged into one property, a{property:y;}, while margin:1px 1px 1px 1px; becomes margin:1px. Additionally, margin:0px; becomes margin:0;, and a{margin-top:10px; margin-bottom:10px; margin-left:10px; margin-right:10px;} becomes a{margin:10px;}.
CSSTidy removes any unnecessary whitespace and merges all background-properties. It removes all comments and can remove the last semicolon in every block. CSSTidy also adds missing semicolons, fixes incorrect newlines in strings, adds missing units, and fix bad colors (and color names). The software improvements include having property:value ! important; become property:value !important.
To use CSSTidy, you only need PHP 4.3.x or PHP 5.0.x. The latest release of CSSTidy is the last version, and if anyone would like to continue maintaining it, they are welcome to let the developers know. The software improves a few functionalities which include, but are not limited to, quotes, universal selector before classes, IDs, and attribute selectors, wrong transformation of a significant integer value, and @media merge strangeness (cssTidy.exe version).
All in all, CSSTidy is a reliable, functional, and useful software that optimizes your CSS and makes your life easier by freeing up your time to work on other important tasks. The software is perfect for anyone who wants to improve CSS quality and speed up their workflow.
Version 1.3: N/A