CSS Formatter and Optimiser
Ensuring your CSS is well written and formatted correctly is essential to good website design. As more and more CSS is being used to style websites it’s important to optimise your CSS files.
Once I have finished a project and have made sure all the formatting is correct, I place a copy of this file (with comments) into a ‘source’ folder (example). I then run my CSS through the cleancss.com utility using the ‘High (moderate readability, smaller size)’ compression. I also strip out all the comments at this stage and then upload this file for use with the website (example).
You now have the source file with comments and good readability in case you need to go back to alter or add something at a later date. You can then run the CSS through the utility again and replace the master.css file. You end up with all your selectors and their properties in the correct order and a CSS file which is smaller in file size which will enable you to maximise your server’s resources.
Leave a comment
Recent Posts
Categories
- Blog (43)
- Code (1)
- Codeigniter (2)
- FuelPHP (1)
- Refresh Teesside (1)
What I'm Doing...
- @stublackett awesome snowman my man! 13 hrs ago
- @xocs a computer ban! love it! No worries. 14 hrs ago
- @xocs if I email you some links can you add them to the @refreshteesside website? 17 hrs ago
- More updates...
Tags
Archives
- January 2012 (1)
- October 2011 (2)
- August 2011 (1)
- March 2011 (2)
- February 2011 (1)
- August 2010 (1)
- May 2010 (1)
- April 2010 (1)
- March 2010 (2)
- January 2010 (1)
- November 2009 (1)
- October 2009 (1)
- September 2009 (1)
- August 2009 (3)
- July 2009 (3)
- June 2009 (1)
- April 2009 (1)
- March 2009 (2)
- February 2009 (2)
- December 2008 (1)
- November 2008 (1)
- October 2008 (2)
- September 2008 (1)
- August 2008 (1)
- July 2008 (3)
- June 2008 (2)
- May 2008 (7)






